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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.