The logrotate utility is designed to simplify the administration of logs on a system which generates a lot of log files. Logrotate provides automatic rotation, compression (gzip by default), removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file exceeds a certain size.

WWW: https://github.com/logrotate/logrotate
