We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If there is a line in nginx log with empty user agent it fails with a message like this:
panic: Access log line 'xx.xx.xx.xx - [21/Apr/2014:06:25:10 +0000] "GET / HTTP/1.0" 200 15389 "-" ""' does not match given format '^(?P<remote_addr>[^ ]+) - [(?P<time_local>[^]]+)] "(?P[^ ]+) (?P[^ ]+) (?P[^"]+)" (?P[^ ]+) (?P[^ ]+) "(?P[^"]+)" "(?P[^"]+)"$'
The text was updated successfully, but these errors were encountered:
What format do you use for parsing?
Sorry, something went wrong.
The regular one: http { log_format main '$remote_addr $user [$time_local] "$method $url $proto" $status $size "$referer" "$agent"'; }
Ok, I see the problem... the format to regular expression translation is not perfect. I'm going to fix it. Thanks for report!
e8cb7a8
Merge pull request #7 from satyrius/fix_empty_value
e846400
empty values parsing, fix #6
Thank you! It works.
No branches or pull requests
If there is a line in nginx log with empty user agent it fails with a message like this:
panic: Access log line 'xx.xx.xx.xx - [21/Apr/2014:06:25:10 +0000] "GET / HTTP/1.0" 200 15389 "-" ""' does not match given format '^(?P<remote_addr>[^ ]+) - [(?P<time_local>[^]]+)] "(?P[^ ]+) (?P[^ ]+) (?P[^"]+)" (?P[^ ]+) (?P[^ ]+) "(?P[^"]+)" "(?P[^"]+)"$'
The text was updated successfully, but these errors were encountered: