I noticed that the logs from Nginx in /var/log/nginx do not get rotated by default (mine was already 22gb) and thus added:
/var/log/nginx/*.log {
weekly
rotate 4
copytruncate
compress
notifempty
missingok
}
To /etc/logrotate.conf
However, it seems like Nginx needs to be reloaded via /etc/init.d/nginx reload
for it to start logging again after the old logs are rotated.
Anyone has an idea how to trigger an reload in the logrotate.conf?
Thanks!