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

Re: [cobalt-users] big trouble with log rotating



> I have big trouble with log rotating. Yesterday I received the message
>
> ===
> From: Root <root@xxxxxxxxxxxxxxxxxxxx>
>
> errors occured while rotating /var/log/httpd/access
>
> error running prerotate script --
>                                 leaving old log in place


Ahoy

On a RaQ3, I had a similar problem. Seems that the program which "rotates"
(a better word might be "distributes") the main pile of logs to all the site
log piles will choke on a line which is not properly formatted, rather than
simply discarding the bad line and forging ahead. So if, for some reason,
your RaQ writes some garbled lines, rotation comes to a halt.

I solved it by writing a script to distribute the logs, garbles and all,
then nuking the big log pile. Analog had no problem skipping the bad lines.

I have had to do this several times.

Question is: Why does it sometimes write bad lines?

Aloha