I have the following json event: {
"tags":
[
{"key":"Name","value":"Damian"},
{"key":"Age","value":34},
{"key":"Country","value":"Argentina"},
{"key":"City","value":"Buen...
See more...
I have the following json event: {
"tags":
[
{"key":"Name","value":"Damian"},
{"key":"Age","value":34},
{"key":"Country","value":"Argentina"},
{"key":"City","value":"Buenos Aires"}
]
} I need to extract the correspondent fields in my event, with the key and value: Name="Damian" Age="34" Country="Argentina" City="Buenos Aires" This is what I tried: | spath path=tags{}.key output=a_keys
| spath path=tags{}.value output=a_values
| eval {a_keys} = a_value But the result of it is a multivalued field: Name Age Country City = [ "Damian", "34", "Argentina", "Buenos Aires" ] How can I create the correct fields?