Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
zied_ahmed1
Specialist
Specialist

how to keep only 10 days logs qlik sense in the folder

Hello ,

 

how to keep only 10 days logs qlik sense in the folder via QMC from C:\ProgramData\Qlik\Sense\Log

 

Thanks

Labels (1)
7 Replies
Chip_Matejowsky
Support
Support

Hi @zied_ahmed1,

You can configure logging levels of the Qlik Sense services in the QMC. See the following Help entry for details:  Configuring the logging i.e. for Engine logging, edit Logging section of QMC > Engines > Central.


Best Regards

Principal Technical Support Engineer with Qlik Support
Help users find answers! Don't forget to mark a solution that worked for you!
zied_ahmed1
Specialist
Specialist
Author

thank you @Chip_Matejowsky ,

 

Can you please send me a picture to know what i need exactly modifying to keep only the last 10 days of logs ?

 

Thanks 

Aasir
Creator III
Creator III

QMC -> Monitoring -> Logging->Retained logs
Set retention here

ashimdash
Contributor II
Contributor II

Create a ps script, 

Get-ChildItem –Path "\\LogFolder" -Recurse -include *.log | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-30))}|Remove-Item

                        *\\LogFolder- Change as per your environment

                        *AddDays(-30) - Change days as per your requirement

Now call the ps script using a batch file. You can execute the batch file from the Windows task scheduler. 

zied_ahmed1
Specialist
Specialist
Author

thanks @Aasir  but there is no Monitoring in the list (there is only Monitoring apps )

zied_ahmed1
Specialist
Specialist
Author

Thanks @ashimdash  will try create this script and back to you 

Aasir
Creator III
Creator III

Might be a version difference from mine.