Rotation for logfiles¶
For systems using prod as environment:
logrotate utility is a standard tool in Linux systems. It is run by
cron.daily once a day at 6:25 am (on Ubuntu systems).
logrotate runs, it reads all the configuration scripts in
This directory contains already several scripts for e.g. apache2, samba, apt, etc.
Configuration for rotating logs¶
Create a new configuration file for
1 2 3 4 5 6 7 8 9
If the logfiles grow very quickly, you can run
logrotate once per hour by putting it in
cron.hourly (it will run at 17 minutes past every hour):