cPanel Log Rotation Configuration

Valid for versions 82 through the latest version

Version:

82


Last modified: May 6, 2021

Overview

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.

Important:

The system does not automatically delete the compressed log files. You must manually delete any unnecessary files. For information about cleaning out old log files, read our How to Clean Unmanaged Log Files documentation.

Note:

For information about ApacheĀ® log rotation, read our Apache Log Rotation interface (WHM >> Home >> Service Configuration >> Apache Configuration >> Log Rotation) documentation.

Configure log files

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

  1. Select the checkboxes for the log files that you wish to archive.
  2. Click Save.
Note:

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

Additional Documentation