Grok filter multiple match

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