Concat the XML array in logstash

HI Team,
I'm just working on new type of XML file. I have some array information in that file i want to gather all those data.. This array fields are repeating with same tags due to this while processing the log the i'm getting empty array value and help me to concat all the value and store in a field. Please find the sample code for your refrerence,

<_5:TelephoneCommunication>
<_5:ChannelCode>Day</_5:ChannelCode>
<_5:CompleteNumber>312</_5:CompleteNumber>
<_5:UseCode>Day</_5:UseCode>
</_5:TelephoneCommunication>
<_5:TelephoneCommunication>
<_5:ChannelCode>Evening</_5:ChannelCode>
<_5:CompleteNumber>123</_5:CompleteNumber>
<_5:UseCode>Evening</_5:UseCode>
</_5:TelephoneCommunication>
<_5:TelephoneCommunication>
<_5:ChannelCode>Cell</_5:ChannelCode>
<_5:CompleteNumber>231</_5:CompleteNumber>
<_5:UseCode>Cell</_5:UseCode>
</_5:TelephoneCommunication>

xml code to extract the info,

"//body/ProcessMessageResponse/payload/content/ConfirmBOD/ConfirmBODDataArea/RepairOrder/RepairOrderHeader/OwnerParty/SpecifiedPerson/TelephoneCommunication/ChannelCode/text()","user_call_mode",

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