Random Sequence

Running logrotate.d Manually

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

Sponsored Links: