<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Qlik Sense Script logs are deleted from ArchivedLogs location in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/ta-p/1713654</link>
    <description>&lt;P&gt;Qlik Sense Enterprise on Windows is expected to only keep a certain number of script logs per app. This works as intended to avoid filling up disk space over time and to optimize Qlik Sense Repository performance.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;In older releases an inconsistency has been observed, where script logs are not always deleted as expected. This has since then been address (QLIK-86228).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Environments:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise on Windows all versions&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This behavior is controlled by the setting "&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;MinNumberOfExecutionResultsToKeepPerTask&lt;/SPAN&gt;"&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;(from Qlik Sense February 2019 and up) or&amp;nbsp;"&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;ExecutionResultsAmountKept&lt;/SPAN&gt;"&amp;nbsp; (all prior versions) located in the &lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;Repository.exe.config&lt;/SPAN&gt; file (&lt;SPAN&gt;By default, the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="path"&gt;Repository.exe.config&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;file can be found in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="path"&gt;C:\Program Files\Qlik\Sense\Repository\&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;on your&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable CommonComponents.Qlik_Sense variable"&gt;Qlik Sense&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;machine.&lt;/SPAN&gt;).&lt;BR /&gt;&lt;BR /&gt;However, this is highly discouraged to change the default setting without being instructed to do so by Qlik Support as this may cause&lt;STRONG&gt; severe performance issues for the whole system&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;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 number of logs kept will increase the size of the repository and decrease the Qlik Sense system global performance.&lt;BR /&gt;&lt;BR /&gt;By default&amp;nbsp;"&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;MinNumberOfExecutionResultsToKeepPerTask&lt;/SPAN&gt;" has a value of 3, which means that:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;It will keep for each App a maximum of 3 old logs and the latest log (Totally 4 script logs)&lt;/LI&gt;
&lt;LI&gt;The first cleaning will occur on the 9th reload of the App (&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;MinNumberOfExecutionResultsToKeepPerTask&amp;nbsp;&lt;/SPAN&gt;x 3) and will remove the 5 oldest logs, leaving 4 logs. After that, always 4 logs will be kept.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: In the most recent version, you may not have the row '&lt;I&gt;ExecutionResultsAmountKept&lt;/I&gt;', but should have a new one:&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;MinNumberOfExecutionResultsToKeepPerTask&lt;/STRONG&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Recommended workaround to keep older logs&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 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:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;robocopy \\&amp;lt;domain&amp;gt;\QlikShare\ArchivedLogs\&amp;lt;FQDN_OF_RELOAD_NODE_1&amp;gt;\Script C:\AuditLogs\&amp;lt;FQDN_OF_RELOAD_NODE_1&amp;gt; /E /XC /XN /XO
robocopy \\&amp;lt;domain&amp;gt;\QlikShare\ArchivedLogs\&amp;lt;FQDN_OF_RELOAD_NODE_2&amp;gt;\Script C:\AuditLogs\&amp;lt;FQDN_OF_RELOAD_NODE_2&amp;gt; /E /XC /XN /XO&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The frequency you should run this script it based on how frequently you reload your tasks.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 00:16:36 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2021-10-28T00:16:36Z</dc:date>
    <item>
      <title>Qlik Sense Script logs are deleted from ArchivedLogs location</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/ta-p/1713654</link>
      <description>&lt;P&gt;Qlik Sense Enterprise on Windows is expected to only keep a certain number of script logs per app. This works as intended to avoid filling up disk space over time and to optimize Qlik Sense Repository performance.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;In older releases an inconsistency has been observed, where script logs are not always deleted as expected. This has since then been address (QLIK-86228).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Environments:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise on Windows all versions&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This behavior is controlled by the setting "&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;MinNumberOfExecutionResultsToKeepPerTask&lt;/SPAN&gt;"&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;(from Qlik Sense February 2019 and up) or&amp;nbsp;"&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;ExecutionResultsAmountKept&lt;/SPAN&gt;"&amp;nbsp; (all prior versions) located in the &lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;Repository.exe.config&lt;/SPAN&gt; file (&lt;SPAN&gt;By default, the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="path"&gt;Repository.exe.config&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;file can be found in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="path"&gt;C:\Program Files\Qlik\Sense\Repository\&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;on your&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable CommonComponents.Qlik_Sense variable"&gt;Qlik Sense&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;machine.&lt;/SPAN&gt;).&lt;BR /&gt;&lt;BR /&gt;However, this is highly discouraged to change the default setting without being instructed to do so by Qlik Support as this may cause&lt;STRONG&gt; severe performance issues for the whole system&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;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 number of logs kept will increase the size of the repository and decrease the Qlik Sense system global performance.&lt;BR /&gt;&lt;BR /&gt;By default&amp;nbsp;"&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;MinNumberOfExecutionResultsToKeepPerTask&lt;/SPAN&gt;" has a value of 3, which means that:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;It will keep for each App a maximum of 3 old logs and the latest log (Totally 4 script logs)&lt;/LI&gt;
&lt;LI&gt;The first cleaning will occur on the 9th reload of the App (&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;MinNumberOfExecutionResultsToKeepPerTask&amp;nbsp;&lt;/SPAN&gt;x 3) and will remove the 5 oldest logs, leaving 4 logs. After that, always 4 logs will be kept.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: In the most recent version, you may not have the row '&lt;I&gt;ExecutionResultsAmountKept&lt;/I&gt;', but should have a new one:&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;MinNumberOfExecutionResultsToKeepPerTask&lt;/STRONG&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Recommended workaround to keep older logs&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 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:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;robocopy \\&amp;lt;domain&amp;gt;\QlikShare\ArchivedLogs\&amp;lt;FQDN_OF_RELOAD_NODE_1&amp;gt;\Script C:\AuditLogs\&amp;lt;FQDN_OF_RELOAD_NODE_1&amp;gt; /E /XC /XN /XO
robocopy \\&amp;lt;domain&amp;gt;\QlikShare\ArchivedLogs\&amp;lt;FQDN_OF_RELOAD_NODE_2&amp;gt;\Script C:\AuditLogs\&amp;lt;FQDN_OF_RELOAD_NODE_2&amp;gt; /E /XC /XN /XO&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The frequency you should run this script it based on how frequently you reload your tasks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 00:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/ta-p/1713654</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-10-28T00:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script logs are deleted from ArchivedLogs location</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/1990336#M7479</link>
      <description>&lt;P&gt;Is there a way to recover the deleted log files?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 18:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/1990336#M7479</guid>
      <dc:creator>jchacko_rxsense</dc:creator>
      <dc:date>2022-10-07T18:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script logs are deleted from ArchivedLogs location</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/1990560#M7482</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164299"&gt;@jchacko_rxsense&lt;/a&gt;&amp;nbsp;The deleted log files cannot be recovered.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 06:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/1990560#M7482</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2022-10-10T06:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script logs are deleted from ArchivedLogs location</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/1990835#M7487</link>
      <description>&lt;P&gt;See if you have the snapshot of the file server of the server where the archived logs were kept. Some organizations takes snapshot of servers periodically and you can benefit from that.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 13:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/1990835#M7487</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2022-10-10T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script logs are deleted from ArchivedLogs location</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/1994399#M7575</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138713"&gt;@jpjust&lt;/a&gt;&amp;nbsp;Thanks. I was able to retrieve them.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 10:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/1994399#M7575</guid>
      <dc:creator>jchacko_rxsense</dc:creator>
      <dc:date>2022-10-19T10:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script logs are deleted from ArchivedLogs location</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/2494397#M15001</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Could we increase the number of logs instead of four ? I would prefer more logs than just four logs.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 10:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Script-logs-are-deleted-from-ArchivedLogs-location/tac-p/2494397#M15001</guid>
      <dc:creator>ankitsoni</dc:creator>
      <dc:date>2024-11-25T10:18:57Z</dc:date>
    </item>
  </channel>
</rss>

