+91 88 00 563434 sales@webhostingpeople.net

Our Knowledge Base Articles

Company Blog

cPanel Log Rotation Configuration

You are here:

In cPanel, a lot of the occasions are saved within the log information. The Log information are saved within the location /usr/native/cpanel/logs which shops all types of logs like Error log, Entry log, backups logs, and far more.

When there’s a downside with the server, and we can’t detect the precise subject, the server log will assist us to analyze the imply explanation for the difficulty.  Typically these log information itself trigger points to the server as a result of the server log entries are repeatedly appending the data which will get unmanageable in some unspecified time in the future. Typically, the log information would possibly get so giant that it will be unattainable to retailer them with out including additional storage to the internet hosting plan or a VPS.

Log rotation is a characteristic that fixes these sort of points. Information from the placement /usr/native/cpanel/logs might be chosen and might be rotated primarily based upon their measurement. The rotated information will likely be compressed and saved in /usr/native/cpanel/logs/archive/.

The information names embody the month during which they’re rotated. Consequently, the file names don’t relate in any technique to the content material of the file being rotated. Information are solely rotated once they develop extra large than the Log Rotation Measurement Threshold setting or the default of 300MB. The archived log information are left in place indefinitely. Information not chosen right here won’t ever be rotated by cPanel software program.

Allow Log Rotation Directions for Particular Log Information

1) Login to WHM.

2) Navigate to the choice ‘Service Configuration’.

  Log Rotation


3) Click on on the choice ‘cPanel Log Rotation Configuration’.

 Log Rotation

4) Choose the suitable examine bins subsequent to the log information that you simply want to retailer indefinitely.

Log Rotation

After you have chosen all of the information you need to rotate, click on on the ‘Save’ button to use the adjustments. The system won’t delete the compressed log information robotically. You have to manually delete any pointless log information. The default log rotation measurement will likely be set to 300mb; we are able to specify a customized threshold too, above which the cpanellogd daemon will rotate the log information. You’ll be able to replace these settings from -> WHM >> Dwelling >> Server Configuration >> Tweak Settings.

Tell us if you happen to want extra assist with log rotation in cPanel. We’ll assist you as quickly as attainable.

Leave a Comment