Hi all, do we have any option to map more than 1 mapping of raw event as we do with grok like grok {match => {"fieldname" => ["pattern1", "pattern2", "patternN" ...]}}
Below code gets failed if I see any different pattern in my raw logs. I want to create more than 1 mapping. Please help me
In above, I'm dissecting the content of message fields like if \n\n comes then create it a fields before and after \n\n. So I'm creating 6 fields but now I'm seeing only 3 delimiters \n\n fields in my raw logs. I want that message should also consider the second match like if first mapping gets failed then it should consider the second mapping. Do we have any option using dissect or can you suggest any other option that could resolve this issue. Thank you in advance.
I'll be grateful if some could please reply to me on this. I know I have an option like
if "event_code_4624_dissect_failed" in [tags] {
dissect {
this_pattern
}
...
}
but I don't want to use this. I want to hear about any option of multiple dissect pattern match as grok match offers like grok {match => {"field" => ["pattern1", "pattern2", "patternN"]}}
You can make the dissect conditional, which you said you do not want to do, or unconditionally do multiple dissects. Or use grok. I am pretty sure grok can do anything dissect can do.
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.