# How to load simple xml file in logstash

**URL:** <https://discuss.elastic.co/t/how-to-load-simple-xml-file-in-logstash/151459>\
**Category:** Logstash\
**Created:** [October 8, 2018, 1:21pm UTC](https://discuss.elastic.co/t/how-to-load-simple-xml-file-in-logstash/151459 "2018-10-08T13:21:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![balumurari1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balumurari1/32/39203_2.png) [@balumurari1](https://discuss.elastic.co/u/balumurari1)\
**Post date:** [October 8, 2018, 1:21pm UTC](https://discuss.elastic.co/t/how-to-load-simple-xml-file-in-logstash/151459/1 "2018-10-08T13:21:34Z")

</div>

![input](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3aafdbf11dfbab690391a4528e68e110728ff0ed.png)

The result to be displayed as shown for the given xml  
{  
"number":"34", "name":"hey"  
}  
{  
"number":"34", "name":"you"  
}

waiting for your response,  
thanks in advance

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [October 8, 2018, 3:55pm UTC](https://discuss.elastic.co/t/how-to-load-simple-xml-file-in-logstash/151459/2 "2018-10-08T15:55:07Z")

</div>

Check out the XML filter  
[https://www.elastic.co/guide/en/logstash/current/plugins-filters-xml.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-xml.html)

---

<div class="post-metadata">

**Author:** ![balumurari1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balumurari1/32/39203_2.png) [@balumurari1](https://discuss.elastic.co/u/balumurari1)\
**Post date:** [October 9, 2018, 4:39am UTC](https://discuss.elastic.co/t/how-to-load-simple-xml-file-in-logstash/151459/3 "2018-10-09T04:39:02Z")

</div>

thanks for the reply,

can you please provide any sample input to get the out as shown above.

Regards,  
Balu

---

<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:** [November 6, 2018, 4:39am UTC](https://discuss.elastic.co/t/how-to-load-simple-xml-file-in-logstash/151459/4 "2018-11-06T04:39:02Z")

</div>

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