Hello, I am trying to parse some data which is in one of the two following formats:
Sample data:
Data from service service-a loaded
Data from service service-b not loaded
With the following Grok Pattern:
Data from service %{NOTSPACE:service} %{NOT:n}loaded
and custom patterns:
NOT (?:not )
I work in Kibana > Grok Debugger. It seems that my pattern matches the second line of sample data but not the first. I am trying to make it so that the "not " part is optional, and to generate a pattern which matches all my inputs. Could you help me?
Second question, is it possible to use grok to output an integer value, 0 or 1, depending on whether the data from the service is loaded or not?