I have configured logrot from cli to include all log files in D:\LMS\log folder (D:\LMS\log\*.log). with max of 1024 KB.
After doing so I have been trying to schedule rotation from GUI but even after configuring & applying it doesnt work.
How does logrotation actually work ? Does it work in background all time checking threshold of file size. (1024KB in our case) and then
when it reaches thresold it rotates it. Or Does it checks file size thresold only on the scheduled time even if the file size exceeds the thresold ?
Please clarify and suggest further troubleshooting
Refer to attached screen cap. before reading.
Next, I have tried adding logrot scheduling through CLI and verified if it was running. But I could not see any backup logs archive in
backup folder assigned. Any idea , where are truncated log archives getting stored?
It only checks log file sizes when it is scheduled to run. Only then will the logs be rotated. You can run NMSROOT/bin/perl NMSROOT/bin/logrot.pl -v from the command line to view debugging output.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: