I have an event as on below:
Rule 'device' failed for user 'user45' reason 'Rule1:OS not found'.
grok {
match => ["event","%{GREEDYDATA}reason '%{GREEDYDATA:rule}:%{GREEDYDATA:reason}'."]
}
rule: Rule1
reason: OS not found
But now I have the same event with multiple occurences after reason separated by a ";" :
Rule 'device' failed for user 'user45' reason 'Rule1:OS not found;Rule5:certificate not found'.
So I have an event as on below:
....... reason 'Rule1:reason1;Rule2:reason2;...;RuleX:reasonX'.
I want to put these values into 2 fields : rule and reason (each value separete by a ",")
rule: Rule1, Rule5, ...
reason: OS not found, certificate not found, reason
Do you know how I can achieve this ? Using regex I suppose
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.