# Decode xml file

**URL:** <https://discuss.elastic.co/t/decode-xml-file/349292>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 13, 2023, 5:58pm UTC](https://discuss.elastic.co/t/decode-xml-file/349292 "2023-12-13T17:58:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Ract\_Costa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/claudio_ract_costa/32/26095_2.png) [@Claudio\_Ract\_Costa](https://discuss.elastic.co/u/Claudio_Ract_Costa)\
**Post date:** [December 13, 2023, 5:58pm UTC](https://discuss.elastic.co/t/decode-xml-file/349292/1 "2023-12-13T17:58:11Z")

</div>

Hi,

I have a file with the following information as example:

```auto
<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

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [December 14, 2023, 12:51pm UTC](https://discuss.elastic.co/t/decode-xml-file/349292/2 "2023-12-14T12:51:16Z")

</div>

Hi @Claudio_Ract_Costa,

Have you taken a look at the [Decode XML processor](https://www.elastic.co/guide/en/beats/filebeat/current/decode-xml.html) for Filebeat? This processor should give you the functionality that you need.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 11, 2024, 2:51pm UTC](https://discuss.elastic.co/t/decode-xml-file/349292/3 "2024-01-11T14:51:57Z")

</div>

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