Sometimes we are not able to manage or reduce the size of the file with the help WHM’s cPanel Log Rotation Configuration interface (WHM >> Home >> Service Configuration >> cPanel Log Rotation Configuration). So, there are other steps to efficiently clean or manage the bunch of unmanaged log files.
We all know that cPanel and WHM helps in creating and maintaining log files smartly. What the log files actually does is- it allows one to get acknowledged about the errors and other significant occurrences on the system.
However, after certain period of time, the size of the log files grow to a significant large size consuming the system’s storage devices. Though cPanel and WHM archive the files with cpanellogd daemon, but, this daemon is not that capable to archive all log files. Hence, to reduce the extreme disk space that these log files occupy, one should compress these log files.
We can clear individual files in directory itself.
Empty the log files and directory by using cat command (concatenate).
cat/dev/null > munin-update.log
du -h* command.
The log rotation system of cPanel and WHM compresses and stores the old log files in /usr/local/cpanel/logs/archives/ directory. With the help of these actions, one can manage as well as reduce the amount of disk space that the hard drive utilises.
With the help of WHM’s cPanel Log Rotation Configuration interface, one can enable and configure log rotation (WHM >> Home >> Service Configuration >> cPanel Log Rotation Configuration). This system stores archive log files in abundance. So, care should be taken in removing them manually. For help, use rm command to remove older log files.
Unmanaged log files are a big burden in system’s storage. It must be checked from time to time and cleaned accordingly for a healthy working of the device and system. All information on cleaning the unmanaged log files is outlined in this review.