This document describes an unsupported workaround that is not guaranteed to work in the future.
This guide provides the steps to reduce the file size of the log files on your server that you do not manage through WHM's cPanel Log Rotation Configuration interface (WHM >> Home >> Service Configuration >> cPanel Log Rotation Configuration).
cPanel & WHM creates and maintains log files. These log files allow you to examine errors and other occurrences on the system.
After an extended period of time, the log files grow to significant sizes on the system's storage devices. cPanel & WHM archives log files with the
cpanellogd daemon. However, this daemon does not archive all log files. To reduce the amount of disk space that the log files occupy, you should compress these log files.
cPanel & WHM's log rotation system compresses and stores old log files in
/usr/local/cpanel/logs/archive/ directory. These actions also help you manage and reduce the amount of disk space that your hard drive uses.
Enable and configure log rotation in WHM's cPanel Log Rotation Configuration interface (WHM >> Home >> Service Configuration >> cPanel Log Rotation Configuration).
The system stores the archived log files indefinitely, so you must remove them manually. Use the
rm command to remove older log files.