[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Logrotate has sporatic results



I have had various logs configured through the logrotate process for some
time, however the apache error log is frequently empty when mailed...

Here's the logrotate.conf section:

/var/log/httpd/error {
    missingok
    postrotate
        /usr/bin/killall -HUP httpd 2> /dev/null || true
    endscript
    daily
    mail admin@xxxxxxxxxx
}

I have verified that there is content in the log...there ought to be at
least the  '[notice] Apache configured -- resuming normal operations' and
SIGHUP messages as the httpd is recycled from cron.  Also, when mailed, it
usually has a smattering of file does not exist, malformed header, etc.
messages.  When it is skipped, the log was rotated, and the mail was sent,
but is an empty message, so the content is gone...

Any ideas?

-- P