# Logstash xml input configuration: for multiple documents

**URL:** <https://discuss.elastic.co/t/logstash-xml-input-configuration-for-multiple-documents/243119>\
**Category:** Logstash\
**Created:** [July 29, 2020, 8:07pm UTC](https://discuss.elastic.co/t/logstash-xml-input-configuration-for-multiple-documents/243119 "2020-07-29T20:07:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 29, 2020, 9:05pm UTC](https://discuss.elastic.co/t/logstash-xml-input-configuration-for-multiple-documents/243119/4 "2020-07-29T21:05:50Z")

</div>

logstash will have placed all of the parsed XML inside the top-level theXML field. If you want the object to be moved to the top level you can use a ruby filter, like [this](https://discuss.elastic.co/t/how-to-dynamically-move-nested-key-value-to-root-level/180006/2).

---

_[View the full topic](https://discuss.elastic.co/t/logstash-xml-input-configuration-for-multiple-documents/243119)._
