Replies: 1 comment 2 replies
-
This should do it:
Let me know how it goes. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Our Tomcat access logs include milliseconds in the timestamp. It looks like this:
01:00:00.956
I'm having trouble getting goaccess to parts these times.Here's a full sample log line:
1.1.1.1 - - 2025-03-30 01:00:00.956 GET /foo/bar 200 914 569 0
I've tried variations on this command:
echo "1.1.1.1 - - 2025-03-30 01:00:00.956 GET /foo/bar 200 914 569 0" | goaccess --log-format='%h %^ %^ %d %t %m "%r" %s %b %D %L' --date-format=%Y-%m-%d --time-format=%H:%M:%S.%^
but keep getting:
==54820== Token '01:00:00.956' doesn't match specifier '%t'
Any tips on how to get this to parse? Ideally keeping the millis, but I'd be ok discarding that value as well.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions