RE: Sorting out of sequence log Apache log file



Allen K. Smith <mailto:lazlor@xxxxxxxxxxxxxxxxxx>
on Wednesday, April 26, 2006 1:20 PM said:

sort -t[ -k 2.4,6M -k 2.1,2n -k 2.13,19n

would catch the timestamps as well (d'oh).

That's better but it's still not quite right because it's sorting by ip
address as well. It should sort by time first and then ip address.



Thanks,
Chris.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages