Hi,
I am trying to analyse a log in logstash,
here is one line from the log..
11.111.111.111 - - [13/Feb/2015:06:59:59 -0500] "POST /myrequestURI HTTP/1.1" 200 780
the grok expression that i have written is:
%{IPV4:ip} - - [%{MONTHDAY:monthday}/%{MONTH:month}/%{YEAR:year}:%{TIME} %{BASE10NUM:offset}] "%{WORD:method} %{GREEDYDATA:request} %{URIPROTO:protocol}/%{BASE10NUM:version}" %{BASE10NUM:respCode} %{BASE10NUM:respTime}
Here are my queries,
-
While i give the grok pattern in logstash, logstash throws an exception for the "[" and quotes present in the expression.
How to escape such special characters in logstash config while specifying the grok expression. -
For the given date format in the log, is my grok pattern correct or there is anyother pattern which can take care of this.