I have been trying to parse a sample log file using logstash grok filter but was unable to output the distinguish fields. my sample logs look like following-
INFO [2016-05-26 11:54:57,741] [main]: org.eclipse.jetty.util.log:?:?- Logging initialized @5776ms`enter code here`
what i want to separate out is INFO, timestamp ,[main] and the message in two parts from from ?:?. what pattern i have tried in grok filter is ->
match => { "message" => "%{WORD:severity} %{CISCOTIMESTAMP:timestamp} %{NOTSPACE} %{GREEDYDATA:logmsg}" }
but its not correctly output the pattern. can please someone provide me the correct grok pattern match!! Any related help would be useful!!