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 different steps to expeditiously clean or manage the bunch of unmanaged log files.
We all understand that cPanel and WHM helps in making and maintaining log files neatly. The log files allow one to know about the errors and various other vital occurrences on the system.
However, in the succeeding amount of your time, the amount of the log files grows to a big massive size exhausting 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 scale back the huge disk space that these log files occupy, one ought to compress these log files.
We can clear individual files in the directory itself.
Empty the log files and directory by applying cat command (concatenate).
cat/dev/null > munin-update.log
du -h* command.
The log rotation system of cPanel and WHM compresses and stores the previous log files in /usr/local/cpanel/logs/archives/ directory. With the assistance of the actions, one can manage as well as reduce the amount of disk space that the hard drive utilizes.
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 ought to be taken in removing them manually. For help, use rm command to get rid of older log files.
Unmanaged log files are a huge headache in the system’s storage. It must be checked from time to time and cleaned accordingly for a healthy working of the device and system. All data on brushing the unmanaged log files are reviewed in this article.