Qlik Sense: Script logs getting deletedArticle Number: 000051232 | Last Modified: 2019/11/13
This is working as designed. However, inconsistencies have been found on older builds.
Inconsistent behavior in script logs deletion:It may happen that some script logs do not get deleted as they should.
The defect is still under investigation and a release date for the fix has not been communicated yet.
- Qlik Sense Enterprise June 2018 and older
This behavior is controlled by the setting "MinNumberOfExecutionResultsToKeepPerTask" (from Qlik Sense February 2019 and up) or "ExecutionResultsAmountKept" (all prior versions) located in the Repository.exe.config file.
However, this is highly discouraged to change the default setting without being instructed to do so by Qlik Support as this may cause severe performance issues for the whole system.
The reason for that is that a reference to each of the existing script logs is stored in the Qlik Sense repository and increasing the amount of logs kept will increase the size of the repository and decrease the Qlik Sense system global performance.
By default "MinNumberOfExecutionResultsToKeepPerTask" has a value of 3, which means that:
- It will keep for each App a maximum of 3 old logs and the latest log (Totally 4 script logs)
- The first cleaning will occur on the 9th reload of the App (MinNumberOfExecutionResultsToKeepPerTask x 3) and will remove the 5 oldest logs, leaving 4 logs. After that, always 4 logs will be kept.
NOTE: In the most recent version, you may not have the row 'ExecutionResultsAmountKept', but should have a new one : MinNumberOfExecutionResultsToKeepPerTask
Qlik Sense Enterprise September 2018 (12.36.1)
Recommended workaround to keep older logsThe currently recommended workaround to keep the older logs is to use a third party script (.bat script or else) to move the logs to another folder before they actually get deleted. Below is an example of how this could be done:
robocopy \\<domain>\QlikShare\ArchivedLogs\<FQDN_OF_RELOAD_NODE_1>\Script C:\AuditLogs\<FQDN_OF_RELOAD_NODE_1> /E /XC /XN /XO robocopy \\<domain>\QlikShare\ArchivedLogs\<FQDN_OF_RELOAD_NODE_2>\Script C:\AuditLogs\<FQDN_OF_RELOAD_NODE_2> /E /XC /XN /XO
The frequency you should run this script it based on how frequently you reload your tasks.
There is a feature on the Qlik Sense roadmap to allow to unlink script logs from the repository and move them to a different folder.
The implementation date of this feature is not known yet at the moment.
Have a Question?
Search Qlik's Support Knowledge database or request assisted support for highly complex issues.Submit a case
Experiencing a serious issue, please contact us by phone. View phone numbers and hours by region.