<?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>topic Re: Automatically Purge Qlik Sense Server Archived Log Files? in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Automatically-Purge-Qlik-Sense-Server-Archived-Log-Files/m-p/1813660#M19624</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have multiple folders under Archive drive such as Engine,Proxy,Repository,Scheduler,Script and few others.&lt;/P&gt;&lt;P&gt;And under Engine, there are again multiple folders such as Audit, System, Trace&lt;/P&gt;&lt;P&gt;So my script will be as follows for "ENGINE"&lt;/P&gt;&lt;P&gt;Forfiles /P "D:\QlikSense\ArchivedLogs\servername\Engine\Audit" /M *.log /D -30 /C "cmd /c del @file /q&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forfiles /P "D:\QlikSense\ArchivedLogs\servername\Engine\System" /M *.log /D -30 /C "cmd /c del @file /q&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forfiles /P "D:\QlikSense\ArchivedLogs\servername\Engine\Trace" /M *.log /D -30 /C "cmd /c del @file /q&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly, I will have scripts for Proxy, Repository folders etc.,&lt;/P&gt;&lt;P&gt;Then have all the scripts into an .bat file and run once a week using windows task scheduler.&lt;/P&gt;&lt;P&gt;Is this the best approach?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2021 13:32:28 GMT</pubDate>
    <dc:creator>jpjust</dc:creator>
    <dc:date>2021-06-08T13:32:28Z</dc:date>
    <item>
      <title>Automatically Purge Qlik Sense Server Archived Log Files?</title>
      <link>https://community.qlik.com/t5/Management-Governance/Automatically-Purge-Qlik-Sense-Server-Archived-Log-Files/m-p/1375123#M10465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had a Qlik Sense Server up and running for a couple years now. However, every once in awhile I need to go clear out the archived log files located at the path C:/Qlik/Sense/Repository/Archived Logs/[server name]/Scripts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The machine that runs my Qlik Sense Server only has 126GB storage and these logs are currently taking up &lt;STRONG&gt;94GB&lt;/STRONG&gt; of space which is a little obnoxious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What are these files even used for? (Is it bad that I just deleted most of them?)&lt;/LI&gt;&lt;LI&gt;Is there a way I can schedule a task so that it clears these out every month? &lt;SPAN style="text-decoration: underline;"&gt;or&lt;/SPAN&gt; Can I set a expiration date on these files so it only keeps the past 30 days?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 19:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Automatically-Purge-Qlik-Sense-Server-Archived-Log-Files/m-p/1375123#M10465</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2017-09-07T19:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Purge Qlik Sense Server Archived Log Files?</title>
      <link>https://community.qlik.com/t5/Management-Governance/Automatically-Purge-Qlik-Sense-Server-Archived-Log-Files/m-p/1375124#M10466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just created a batch job that moved the files to an archive folder.&amp;nbsp; It also cleans out old logs from the archive that are older than 31 days.&amp;nbsp; You could adjust the purging from the archive folder to a shorter time if space is an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the script I use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE c:\ProgramData\Qlik\Sense\Log\Script\*.* "F:\Log Archive\"&lt;/P&gt;&lt;P&gt;MOVE "C:\ProgramData\Qlik\Sense\Repository\Archived Logs\&lt;EM&gt;server_name&lt;/EM&gt;\Script\*.*" "F:\Log Archive\"&lt;/P&gt;&lt;P&gt;Forfiles /P "F:\Log Archive" /M *.log /D -31 /C "cmd /c del @file /q"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; It moved the script logs to the Log Archive folder on F&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; move all archived logs to the Log Archive folder on F&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Delete files from the Log Archive folder that are older than 31 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scheduled task that runs once a week.&amp;nbsp; That allows me to keep Qlik's archived logs intact for the week and also gives me roughly a months work of older logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Operation and License monitors are running on a regular basis, you really don't need to keep the logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 19:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Automatically-Purge-Qlik-Sense-Server-Archived-Log-Files/m-p/1375124#M10466</guid>
      <dc:creator>kevincase</dc:creator>
      <dc:date>2017-09-07T19:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Purge Qlik Sense Server Archived Log Files?</title>
      <link>https://community.qlik.com/t5/Management-Governance/Automatically-Purge-Qlik-Sense-Server-Archived-Log-Files/m-p/1813660#M19624</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have multiple folders under Archive drive such as Engine,Proxy,Repository,Scheduler,Script and few others.&lt;/P&gt;&lt;P&gt;And under Engine, there are again multiple folders such as Audit, System, Trace&lt;/P&gt;&lt;P&gt;So my script will be as follows for "ENGINE"&lt;/P&gt;&lt;P&gt;Forfiles /P "D:\QlikSense\ArchivedLogs\servername\Engine\Audit" /M *.log /D -30 /C "cmd /c del @file /q&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forfiles /P "D:\QlikSense\ArchivedLogs\servername\Engine\System" /M *.log /D -30 /C "cmd /c del @file /q&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forfiles /P "D:\QlikSense\ArchivedLogs\servername\Engine\Trace" /M *.log /D -30 /C "cmd /c del @file /q&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly, I will have scripts for Proxy, Repository folders etc.,&lt;/P&gt;&lt;P&gt;Then have all the scripts into an .bat file and run once a week using windows task scheduler.&lt;/P&gt;&lt;P&gt;Is this the best approach?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 13:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Automatically-Purge-Qlik-Sense-Server-Archived-Log-Files/m-p/1813660#M19624</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-06-08T13:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Purge Qlik Sense Server Archived Log Files?</title>
      <link>https://community.qlik.com/t5/Management-Governance/Automatically-Purge-Qlik-Sense-Server-Archived-Log-Files/m-p/1818862#M19793</link>
      <description>&lt;P&gt;We have FISMA requirements to retain logs, therefore I do a similar purge post archiving(not the Qlik archive).&amp;nbsp; The dev server I purge both the active logs and archive logs on a&amp;nbsp; 90 day retention for active and 30 day&amp;nbsp; for archive.&lt;/P&gt;&lt;P&gt;The best approach is to use the /S and all sub directories will be search recursively starting at your /P top of tree directory. You can cover all log files and directories like below for active logs in your scheduled batch and do the same for archives in 2 lines, 1 batch.&lt;/P&gt;&lt;P&gt;forfiles /P C:\ProgramData\Qlik\Sense\Log /S /M *.log /D -90 /C "cmd /c del /f /q &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/123762"&gt;@path&lt;/a&gt;"&lt;/P&gt;&lt;P&gt;Note this is an example your purge of only .log files.&amp;nbsp; You can also do one loop and recursively search all sub dirs and files w/o using forfiles and control more granularity of what's deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 13:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Automatically-Purge-Qlik-Sense-Server-Archived-Log-Files/m-p/1818862#M19793</guid>
      <dc:creator>twales</dc:creator>
      <dc:date>2021-06-30T13:31:41Z</dc:date>
    </item>
  </channel>
</rss>

