-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Date format bogus error #2793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you please share the entire line from your log so I can take a closer look? Thanks |
--log-format='%Y-%m-%d %H:%M:%S,%f %^ %^ [%^] %^ %h %^ %r %^ %s %^' --date-format='%Y-%m-%d' --time-format='%H:%M:%S,%f' 2025-02-20 13:50:27,007 INFO fi.csc.virta.julkaisut.filter.LogFilter [http-nio-8080-exec-9] Request from 162.162.162.162 GET /api/cerif?verb=ListRecords&resumptionToken=MTpAJrt5HJu9aplKTRujIld34aDFghJKa3s2JUoPPoU= - 200 OK |
This should do it:
|
Thanks! That did it, but I don't really understand how and why :) |
You were almost there with your format! However, in the log format, the date is represented by |
That part I understood, the "extras" in the end were mystifying --date-spec=min -H no -M no |
Token '02' doesn't match specifier '%m'
As far as I know 02 is February and %m is defined "The month as a decimal number (range 01 to 12)"
So how is this an error?
The text was updated successfully, but these errors were encountered: