-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Token doesn't match specifier '%h' #2575
Comments
I'm unsure about your question's specifics. Please don't hesitate to provide additional information as required. |
Can I hijack please? Thanks! ;-) I've tried goaccess, and got various nondescript, and most importantly non-testable errors, usually like:
It seems debugging log-format is almost impossible, or the documentation is not detailed enough. (Granted, they are not in standard common log format.) Suggestion: is there any way to test format specifiers against patterns? The above problem seems to be that the user don't even know which line was not matched, let alone why, or where the parser have failed. Thanks for the mic. 😁 |
@grinapo Please share a few lines from your log so I can review the format. |
@allinurl I have tried not to be completely off-topic so my suggestion was to have more meaningful error messages, which would have helped the original issue as well. But, since you've asked:
The problem is the milliseconds part which is not in standard |
@grinapo I was attempting to locate a similar question, but unfortunately, I couldn't recall the solution. Regardless, it's worth mentioning that strftime doesn't support milliseconds in the C implementation. Please don't hesitate to suggest how the errors should be handled, or even better, feel free to submit a PR with any changes you believe might improve the experience for users. I'd be more than happy to review them. The following should do it:
|
Originally posted by @allinurl in #1273 (comment)
The text was updated successfully, but these errors were encountered: