Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ahmar811
Creator III
Creator III

Find error log file and delete log/any file with date condition

Hi Friends,

This is my first document on Qlik Community,I have a simple but useful code for Qlik Developer/Admin so, why I implement this code because what happen sometimes error occur after 2-3 days of publishing application because of table not found and any other reason.

The below code is find error in all log file for any Qlik application you don't have to mention any application name or any path name just put one main path then this application is search all path or sub path and file log and load it.

And Second one more feature in the below code you can delete log file base on date condition,If you want to store only last 30 days’ log and other log file delete just put date condition on below code (like Today-30).


Capture.JPG.png

Before run this code, you must enable some feature or option in Qlikview

Open Qlikview->Edit Script->Setting Tabs-> Enable Can Execute Extenal Programs


Regards

Ahmar

Labels (4)
0 Replies