[CentOS] Sort logfiles at rotation time

Stephen Nelson-Smith stephen at atalanta-systems.com
Mon Nov 9 17:10:07 UTC 2009


2009/11/9 Kai Schaetzl <maillists at conactive.com>:
> Stephen Nelson-Smith wrote on Mon, 9 Nov 2009 16:45:35 +0000:
>
>> Because within apache, you can't necessarily guarantees strict
>> chronological order of log entries.  If, for example, php takes a
>> couple of seconds to run, the request could come a couple of seconds
>> before the log entry is written
>
> Is it possible that everyone misunderstood your question?
> You want to sort the *content* of the log files, so the content is in
> chronological order?

Precisely so.

> I do not see much value in this.

My client requires it, so there is value for him :)

> But you may try mergelog for this purpose.
> http://mergelog.sourceforge.net/

I'll check it out.

S.



More information about the CentOS mailing list