logrotate

logrotate is a program to rotates logs. This is run daily using cronjob

Logrotate config files are stored in

To rotate logs daily, add daily to the logrotate configuration. To keep logs for 5 days, add “rotate 5”.