Sorting out of sequence log Apache log file

Chris W. Parker cparker at swatgear.com
Wed Apr 26 20:13:10 UTC 2006


Allen K. Smith <mailto:lazlor at bigboy.lotaris.org>
    on Wednesday, April 26, 2006 1:04 PM said:

> sort -t[ -k 2.4,6M -k 2.1,2n access_log

Maybe I'm not using it correctly but that made the file even worse.

# sort -t[ -k 2.4,6M -k 2.1,2n Feb-14.log > Feb-14_sorted2.log

After about a minute I got back a file with the log entries mixed up
even more. Did I do something wrong?



Thanks,
Chris.




More information about the redhat-list mailing list