So let's say I have the following log message that I'm trying to capture via a grok filter:
"2018-10-02 18:00:00 INFO THIS_IS_A_TEST_MESSAGE"
I want to extract "THIS_IS_A_TEST_MESSAGE" as a field, but then additionally I want to capture just the word TEST as another field. I need them both to create some Kibana visualizations, but it requires them to be separate for aggregation purposes.
The current grok I have looks something like this:
match => { "message" => "%{TIME:time} %{LOGLEVEL:logLevel} %{WORD:payload}" }
So as I have it that creates 3 fields: time, logLevel, and payload; however, I need it to capture 4 fields, but the 4th field lies within the payload field. How can I adjust my grok to do this?
I am very new to ELK stack so still getting used to writing these configs.