When cPanel Log Rotation is configured, it compresses cPanel & WHM log files and store in the location /usr/local/cpanel/logs/archive/ directory at the end of each month. The compressed file name includes the month in which they are rotated.
Please note that the files are rotated only when they exceed the size specified in 'Log Rotation Size Threshold' under 'Tweak Settings'.
To specify the threshold limit for the log files to be rotated, follow the below steps:
1. Click 'Tweak Settings' under 'Server Configuration' in the left menu pane of WHM.
2. Select 'Stats and Logs' tab at top.
3. Set the value in 'Log rotation size threshold' (default: 300Mb).
To configure cPanel Log Rotation Configuration, follow the below steps:
1.Click 'cPanel Log Rotation Configuration' under 'Service Configuration' in the left menu pane of WHM.
2. Select the desired files to be rotated.
3. Click save.
The compressed files are not automatically deleted. You must manually delete the unwanted files.