Decode xml file

Hi,

I have a file with the following information as example:

<sDPCallDataRecord>
      <accountAdjustment>
            <information1>aloha</information1>
            <information2>ola</information2>
           </accountAdjustment>
</sDPCallDataRecord>

<sDPCallDataRecord>
      <accountAdjustment>
            <information1>hola</information1>
            <information2>green</information2>
      </accountAdjustment>
</sDPCallDataRecord>

How can i configure filebeat to read this xml file and send it to Elasticsearch but each entry sent must be a doc.

For example, this xml file above will generate 2 document in elastic

Hi @Claudio_Ract_Costa,

Have you taken a look at the Decode XML processor for Filebeat? This processor should give you the functionality that you need.

Hope that helps!

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