cPanel Log Rotation Configuration

Valid for versions 82 through the latest version



Last modified: August 13, 2020


This interface allows you to select cPanel & WHM log files for the cpanellogd daemon to compress and archive. At the end of each month, the cpanellogd daemon compresses the selected log files into a single file for each type. The system archives the compressed files in the /usr/local/cpanel/logs/archive/ directory.

  • This document discusses WHM’s cPanel Log Rotation Configuration interface (Home >> Service Configuration >> cPanel Log Rotation Configuration). For information about Apache’s Log Rotation interface (Home >> Service Configuration >> Apache Configuration >> Log Rotation), read our Log Rotation documentation.
  • The system does not automatically delete the compressed log files. You must manually delete any unnecessary files.

Configure log files

To select the log files to compress and archive, perform the following steps:

  1. Select the appropriate checkboxes next to the log files that you wish to archive.
  2. Click Save.

For more information about log files that appear in this interface, read The cPanel & WHM Log Files documentation.

Additional Documentation