2017-03-21T23:53:10-04:00 INFO login {"input":"user123","success":false} {"host":"www.example.com","path":"user","clientip":"127.0.0.1"}
This log file starts with a timestmap, loglevel, and event type.
Next are 2 sections of json.
I'd like to read in the key/values of both json strings, but it's unclear how to approach this if the entire message is not json.
Below is my grok pattern up until the first json string:
%{YEAR}-%{MONTHNUM}-%{MONTHDAY}[T ]%{HOUR}:?%{MINUTE}(?::?%{SECOND})?%{ISO8601_TIMEZONE}? %{WORD:loglevel}
How would I get the json items of both json strings into the record?