Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jeroen_wagner
Partner - Creator
Partner - Creator

Sense: 5Gig of logs in: ProgramData\Qlik\Sense\Log

Hello,

I have a customer who has %Gig of log files in ProgramData\Qlik\Sense\Log

I've adviced to delete it for now, as I don't see any problems doing so, but some questions remain.

  • Why does Sense create so many log files (keeping them all)
  • How can I limit this

thanx

Attached a log file from my own laptop... not showing much shcoking....

14 Replies
yadav_anil782
Creator II
Creator II

Hello Anton,

i have also the same situation and a am  trying to Use your script for deleting the more then 90 days logs file automatically from log folder but  i am not getting success.

currently i am using below scipt.

'forfiles /P "C:/ProgramData/Qlik/Sense/Log/Temp/S/M *.*/D -90 /C "cmd /c del @path" ';

could you please guide me if  i need to change something in script

Many thanks in Advance

awqvuserneo
Creator
Creator

Hi Anil,

Sorry for the late respond. Have you had a chance to make it work? I would modify the code as follows: reverse the folder separator, and put a space between /Temp /S /M

Note:(I haven't fully tested it though).

forfiles /P "C:\ProgramData\Qlik\Sense\Log\Temp" /S /M *.* /D -90 /C "cmd /c del @path"

-Anton

yadav_anil782
Creator II
Creator II

Hello Anton ,

i applied below script and it is working fine.

forfiles /p "E:\QlikSenseSharedData\Archived Logs" /s /m *.log* /D -180 /C "cmd /c del @path"

yadav_anil782
Creator II
Creator II

Hello Anton ,

i applied below script and it is working fine.

forfiles /p "E:\QlikSenseSharedData\Archived Logs" /s /m *.log* /D -180 /C "cmd /c del @path"

gustavgager
Partner - Creator II
Partner - Creator II

This is the best "solution" in my opinion.

I created a small script that runs every day and deletes all log files older the n two weeks. Otherwise my c: drive would fill up.

Qlik should add the ability to auto-delete logs.