Squid log format and problems reading epoch time %s?

80 views
Skip to first unread message

Paul Wayper

unread,
Jul 14, 2015, 9:52:15 PM7/14/15
to ln...@googlegroups.com
Hi all,

I've added a Squid log parser that has patterns for the access log and the general daemon output.

The access log uses epoch time with milliseconds - e.g. 1436673100.317.  I tried the timestamp format pattern "%s.%i", which doesn't complain but gives every log line a date in Jan 1st 1970.  What am I doing wrong?

Thanks in advance,

Paul

Timothy Stack

unread,
Jul 15, 2015, 12:00:57 AM7/15/15
to Paul Wayper, ln...@googlegroups.com
​Currently, lnav will only match time formats that are given in the format config or the defaults.
It doesn't check one and then the other, which is not great...

I would say that the two message patterns should be different formats since the cache log
messages don't have much in common with the request log.  I've sent you a pull request
with that and a few other changes, if you're interested.
 
Thanks in advance,

Pau
​l

thanks,

tim

Reply all
Reply to author
Forward
0 new messages