Hands-on task
Size-based logrotate for the queue log
The queue worker writes to /var/log/queue/worker.log, and the log is already past 3 MiB. Describe its rotation in /etc/logrotate.d/queue-worker: rotate only when the log is bigger than 500k, keep 5 old copies, compress them, and create a new empty worker.log after rotation.
- logrotate
- size-based rotation
- size
- compress
- create