Provided Grok expressions do not match field value for response code 408

(Greg Bacchus) #1


I'm using Filebeat 6.2.4 with the apache module (and Apache 2.4.7).
My other_vhosts_access.log contains some logs like below: - - [30/May/2018:02:14:12 +0000] "-" 408 0 "-" "-"

and when sent into Elasticsearch, it shows with with an error:

Provided Grok expressions do not match field value: [ - - [30/May/2018:02:14:12 +0000] \"-\" 408 0 \"-\" \"-\"]

I have identified that this can easily be fixed with a minor tweak to the ingest pipeline by changing

"%{IPORHOST:apache2.access.remote_ip} - %{DATA:apache2.access.user_name} \\[%{HTTPDATE:apache2.access.time}\\] \"-\" %{NUMBER:apache2.access.response_code} -"


"%{IPORHOST:apache2.access.remote_ip} - %{DATA:apache2.access.user_name} \\[%{HTTPDATE:apache2.access.time}\\] \"-\" %{NUMBER:apache2.access.response_code} "

(note removal of trailing hyphen).

(Noémi Ványi) #2

Do you mind opening a PR for this? Also, what OS are you running Apache on?

(Greg Bacchus) #3

Sure. I'll create one shortly. It's running on Ubuntu 14.04.

(Greg Bacchus) #4

(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.