Logrotate defaults
When inspecting why nginx logs wasn't rotated, I did little strange discover
# uncomment this if you want your log files compressed # compress
so, by default rotated logs are not compressed. Perhaps there are admins which process rotated logs, but I am not one them. I use pre-rotate hook to process logs before rotate them. So, I really expected logrotate to compress by default. And yes, my bad - I didn't checked default configuration in /etc/logrotate.conf
Now I did change default to compress and wouldn't have to use in per service logrotate configuration.
PS: and don't forget
sudo /usr/sbin/logrotate -f /etc/logrotate.conf
after you apply changes to logrotate configurations
Trackback URL for this post:
https://www.kalexandr.com/trackback/119