Hands-on task
Set up log rotation
The application log /var/log/app/app.log grows without bound. Create a logrotate config /etc/logrotate.d/app: rotate when the size is larger than 1M, keep 3 old copies, compress them, and create a fresh empty log after rotation.
- logrotate
- log rotation
- compress
- configuration