Parsing repeated tags in XML

Hello Team,

I have XML data where there are repeated tags, as per the documentation it is converting it to an array, but I want to implement it like break on first match or convert array to single value.
Could you please help me understand how can we achieve this in logstash.

Thanks for your help and support.

Aditya

You can replace the array with its first entry

mutate { replace => { "someField" => "%{[someField][0]}" } }

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.