cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to automate the debug log rollover using lmswitch once the log file is reached the size.

How to automate the debug log rollover using lmswitch once the log file is reached the size.

Question

The AUTO_ROLLOVER option enables the auto rollover of the debug log file, which automatically performs the rollover functionality of the debug log file when the debug log file size crosses the specified value. The default value would be 512MB. The automatic rollover will always be performed at midnight. In case we want to rollover the debug logfile once the log reaches the specified size then how we can rollover the log using lmswitch.

Answer

There are two script files which will help to rollover the debug log once the size of the file has reached to a specific size limit (no need to wait until midnight)

The attached AUTO_ROLLOVER_with_lmswitch.zip has the following files. 

  1. windows_Rollover.bat -> which is windows rollover batch file
  2. Windows_Rollover_HowTo.docx -> Readme for the windows_Rollover.bat file 
  3. rollover.sh -> Linux script file which has the read me as well. 

Both the scripts can be scheduled using task or corn job to automate.

More Information

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Sep 25, 2023 04:46 AM
Updated by:
Contributors