Hands-on task
This task is step 9 of the course “Running a server”
Daily Rotation with a Date
Configure logrotate for /var/log/app/app.log: rotate daily, keep 7 copies, add a date to the filename (dateext), and compress. The config is /etc/logrotate.d/app.
What you'll practise:
- logrotate
- log rotation
- dateext
- compression
- config in /etc/logrotate.d