Hi
I have these lines in my log
how do i make an array of rootcause using grok?
Something like this
rootcause=> {
text1,
text2
}
TIA.
Hi
I have these lines in my log
how do i make an array of rootcause using grok?
Something like this
rootcause=> {
text1,
text2
}
TIA.
Hi
Since this is the #elastic-stack:kibana channel, you might get a better answer in the #elastic-stack:logstash channel. I don't think you can achieve this with grok (unless you know what's the max number of root causes) . But I would try combining the grok and the ruby filter plugin, there it should be easy to split the message and create an array.
You might also find the Split filter useful for this: https://www.elastic.co/guide/en/logstash/current/plugins-filters-split.html
Best,
Matthias
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.