hagf...@gmail.com
unread,Apr 3, 2015, 11:19:21 AM4/3/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ln...@googlegroups.com
Hey everyone,
I just loaded two different log files into lnav hoping it would sort by timestamp so I could see events in parallel between the two, but I discovered two separate instances of a given timestamp, about 1000 lines apart, with lots of other time in between.
It's worth noting that one file records timestamps as Apr 3 01:25:48 whereas the other is Apr 03 01:25:48. While lnav can handle the timestamp formats on each of these files individually, they don't sort together when opened with lnav.
I tried catting both files this way:
cat /var/log/messages /var/log/cluster/corosync.log | sort -k1 > combined.log
and then opened combined.log... after ~ 3 minutes of watching it load, I gave up at 17%. The machine this is running on Centos 7.0.1406, 8GB RAM, 8-2Ghz cores on an 8Gb/s FC VMware RDM backed by a Compellent SAN. The hardware isn't likely a limitation in this case; the combined line count of combined.log was 211k lines... so that just may be a lot of stuff to deal with.
Is there a way to make this sort of thing work that's more elegant than catting the files together? Correlating events across multiple logs is a marvelous thing.
Thanks!