RE: Sorting out of sequence log Apache log file

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

 



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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux