Start logrotate handmatig

Mocht er een fout staan in een configuratie van een applicatie waardoor de logfiles ineens heel snel groeien is er een mogelijkheid om handmatig de logfiles te roteren.

My server recently ran out of space. The culprit was logrotate.d, which had been failing for a couple of months, causing Apache’s access logs to get out of control.
This command will show you why logrotate.d is failing:

logrotate -vf /etc/logrotate.conf 

In my case, an old virtual host had been removed without removing the corresponding logrotate config file. On Debian Linux, logrotate stores its config files at:

/etc/logrotate.d/<virtualhost_name>.conf

Laat een reactie achter

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *