Ravi Sir's Cards › AWS
logrotate safely
This revision card explains logrotate safely. It starts from the need that stop logs filling the disk. It describes daily, rotate 7, compress. The how-to section notes dry-run before trusting. An example on the card is test a config.
Read card text
What this card says
Why do we need it?
Stop logs filling the disk.
What is it?
daily, rotate 7, compress.
How to do it
Dry-run before trusting.
Example
Test a config.
sudo logrotate -d /etc/logrotate.d/nginx