Hands-on task
This task is step 16 of the course “Logs: analysis and housekeeping”
Weekly rotation of the billing log
Accounting needs a month of billing history. Create /etc/logrotate.d/billing for /var/log/billing/billing.log: rotate once a week, keep 4 archives, add the date to the archive name instead of a number, and compress the archives.
What you'll practise:
- logrotate
- weekly
- dateext
- compress
- scheduled rotation