Can someone help me with my grok filter?
The access log I want to parse is this one:
10.00.000.00 - - [08/Feb/2019:09:06:54 -0500] "GET /aft_ms_management_1/ms_manage HTTP/1.1" 404 1164
And the Grok pattern I'm trying is:
grok { match => [ "message", "%{IP:client_ip} %{USER:ident} %{USER:auth} \[%{HTTPDATE:apache_timestamp}\] \"%{WORD:method} /%{NOTSPACE:request_page} HTTP/%{NUMBER:http_version}\" %{NUMBER:server_response} %{NUMBER:bytes}"] }
When I test the grok filter, I got the following error:
:error=>"end pattern with unmatched parenthesis:
But I don't see any parenthesis anywhere ... Thanks for your help
As additional information, I test my pattern with:
input { stdin { } } output { stdout { codec => rubydebug } }
filter {
grok {
match => [ "message", "%{IP:client_ip} %{USER:ident} %{USER:auth} [%{HTTPDATE:apache_timestamp}] \"%{WORD:method} %{NOTSPACE:request_page} HTTP/%{NUMBER:http_version} %{NUMBER:server_response} %{NUMBER:bytes}"
]
} }