<?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: How to auto cleanse Qlik logs text files from &amp;quot;C:\ProgramData\Qlik\Sense\Log&amp;quot; in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1833013#M190592</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Rohit,&lt;/P&gt;
&lt;P&gt;Just with the main folder, all sub folders which don't exist will be automatically created on the destination side.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you could in theory run this as scheduled task. I have also limited the files to just *.log otherwise it moves config files and qvd's as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards Sebastian&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 17:49:59 GMT</pubDate>
    <dc:creator>Sebastian_Linser</dc:creator>
    <dc:date>2021-09-01T17:49:59Z</dc:date>
    <item>
      <title>How to auto cleanse Qlik logs text files from "C:\ProgramData\Qlik\Sense\Log"</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1832734#M190538</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;Can you please help me to setup a solution where older than one month Qlik logs will be cleansed automatically fromC:\ProgramData\Qlik\Sense\Log folder and sub folders:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rohitk1609_1-1630473971716.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61106iBFF5085662460105/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rohitk1609_1-1630473971716.png" alt="rohitk1609_1-1630473971716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1832734#M190538</guid>
      <dc:creator>rohitk1609</dc:creator>
      <dc:date>2024-11-15T22:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto cleanse Qlik logs text files from "C:\ProgramData\Qlik\Sense\Log"</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1832838#M190561</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16339"&gt;@rohitk1609&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;you could do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;  #Moves files older than 31 days old from the Source folder to the Target with creating the folders in the destination folder. 
  $sourcepath="C:\ProgramData\Qlik\Sense\Log"
  $destinationpath="C:\temp"
  Get-Childitem -Path $sourcepath -Filter *.log -Recurse -File  | Where-Object { $_.LastWriteTime -lt (get-date).AddDays(-31)} |
  ForEach {
        $destinationpathwithfolder=$destinationpath+$_.FullName.Substring(25,$_.FullName.Length-25) 
       New-Item -ItemType File -Path $destinationpathwithfolder -Force
    Move-Item $_.FullName -destination $destinationpathwithfolder -force -ErrorAction:SilentlyContinue

  }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just exchange the Destination folder to where you want to have the files. Another option is robocopy if powershell is limited on your system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 11:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1832838#M190561</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2021-09-01T11:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto cleanse Qlik logs text files from "C:\ProgramData\Qlik\Sense\Log"</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1832997#M190587</link>
      <description>&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;Thanks for your valuable input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I am not good with Powershell. Just trying to understand the your code&lt;/P&gt;&lt;P&gt;The code you have shared, will send files older than 31, days from folder and its sub folders to new destination same name folder and same name destination folders?&lt;/P&gt;&lt;P&gt;Or we need to run this piece of code for each folder and its sub folders ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 16:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1832997#M190587</guid>
      <dc:creator>rohitk1609</dc:creator>
      <dc:date>2021-09-01T16:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto cleanse Qlik logs text files from "C:\ProgramData\Qlik\Sense\Log"</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1833013#M190592</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Rohit,&lt;/P&gt;
&lt;P&gt;Just with the main folder, all sub folders which don't exist will be automatically created on the destination side.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you could in theory run this as scheduled task. I have also limited the files to just *.log otherwise it moves config files and qvd's as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards Sebastian&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 17:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1833013#M190592</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2021-09-01T17:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto cleanse Qlik logs text files from "C:\ProgramData\Qlik\Sense\Log"</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1833028#M190595</link>
      <description>&lt;P&gt;If I got your instruction correctly, We just need to run this Powershell script at "C:\ProgramData\Qlik\Sense\Log", all sub folders will be created automatically, and files present in main and sub folders will be moved to corresponding destination main folder and sub folders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the folder has file with name "201912161717323770000" or another folder has file likServer_AuditActivity_Engine_2019-12-17, I hope both files will go to their corresponding folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't get filtering files with&amp;nbsp;&lt;STRONG&gt;*.log.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Files I can see in Log folders as text files. Is &lt;STRONG&gt;.log&lt;/STRONG&gt; is their extension .log?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rohitk1609_1-1630521579624.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61160iB9DB2D11693CB5C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rohitk1609_1-1630521579624.png" alt="rohitk1609_1-1630521579624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to understand what I am missing?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 18:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1833028#M190595</guid>
      <dc:creator>rohitk1609</dc:creator>
      <dc:date>2021-09-01T18:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto cleanse Qlik logs text files from "C:\ProgramData\Qlik\Sense\Log"</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1833099#M190630</link>
      <description>&lt;P&gt;Hello Rohit,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes the files are called .log even if they are shown as Text Document in Windows Explorer, you want to enable the option "File name extentions" under view&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sebastian_Linser_0-1630564260934.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61171i68DDA88047B9B397/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sebastian_Linser_0-1630564260934.png" alt="Sebastian_Linser_0-1630564260934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here a screenshot of my destination, as you can see subfolders are created accordingly folder.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sebastian_Linser_1-1630564309474.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61172iB5D5C2F7D0833387/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sebastian_Linser_1-1630564309474.png" alt="Sebastian_Linser_1-1630564309474.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The specific one you mentioned (Servername_AuditActivity_Engine.log)bove are some which would be moved to the qlik shared folder archived logs path. If it hasnt been moved from e.g.&amp;nbsp;C:\ProgramData\Qlik\Sense\Log\Engine\Audit then the service had problems reaching the share at service start, or the file was locked.&lt;/P&gt;
&lt;P&gt;best regards&lt;/P&gt;
&lt;P&gt;Sebastian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 06:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-auto-cleanse-Qlik-logs-text-files-from-quot-C-ProgramData/m-p/1833099#M190630</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2021-09-02T06:36:05Z</dc:date>
    </item>
  </channel>
</rss>

