Hi,
I've data that gets parsed to:
{...
message => ["line1: message1", "line2: message2"]
}
and I can mutate it easily to:
{...
"lines" => [1,2]
"text" => ["message1", "message2"]
}
via:
grok {"message"=> "line(?[0-9]):(?.)"}
however what I'd like is to have:
{...
entries=> [{"line": 1, "text": "message1"}, {"line": 2, "text": "message2"}]
}
any idea of how to do that?