-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Filebeat Apache module grok pattern should handle absent byte count #3833
Comments
Another thing: The grok pattern for access logs has spaces after opening parenthesis and not before at the end: Should be |
Hang on, that the whitespace didn't work was my mistake when I edited the grok pattern to fix the bytes. Apologies. |
@cwurm Could you open a PR with this changes? Then we directly see how it affects our tests. |
@cwurm Thanks a lot for the fix. Closing this one. |
In the Apache Combined Log Format, an absent byte count is signified by
-
. This has to be included in the grok pattern.Should be something like:
"%{IPORHOST:clientip} %{USER:ident} %{USER:auth} \\[%{HTTPDATE:timestamp}\\] \"%{WORD:verb} %{DATA:request} HTTP/%{NUMBER:httpversion}\" %{NUMBER:response:int} (?:-|%{NUMBER:bytes:int}) %{QS:referrer} %{QS:agent}"
Currently, the option
-
is missing from the default pattern in https://github.com/elastic/beats/blob/master/filebeat/module/apache2/access/ingest/default.jsonThe text was updated successfully, but these errors were encountered: