jan 072014
 

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

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)