logrotate

logrotate is designed to ease administration of systems that generate large numbers of log files.  It allows automatic rotation, compression, removal, and mailing of log files.  Each log file may be handled daily, weekly, monthly, or when it grows too large.

To check the logrotate status, you can tail the log at /var/lib/logrotate.status

example:
“/var/log/cron” 2009-4-12
“/var/log/yum.log” 2009-4-3
“/var/log/wtmp” 2008-10-23
“/var/log/exim_mainlog” 2009-4-12

logrotate configuration file at /etc/logrotate.conf

As usual, man logrotate to find out more

Or you could try to check it out at WHM > Main >> Service Configuration >> cPanel Log Rotation Configuration.

Tried to check the crontab, but not sure how cpanel include this task to be running.

Leave a Comment

Powered by WP Hashcash