# XML multiline files

**URL:** <https://discuss.elastic.co/t/xml-multiline-files/253577>\
**Category:** Logstash\
**Created:** [October 28, 2020, 2:29pm UTC](https://discuss.elastic.co/t/xml-multiline-files/253577 "2020-10-28T14:29:50Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [October 28, 2020, 7:24pm UTC](https://discuss.elastic.co/t/xml-multiline-files/253577/6 "2020-10-28T19:24:00Z")

</div>

If your multiline codec is working then just change store\_xml to be true.

However, it is very unlikely that the codec is working since it says to combine lines that do not contain \<, and you do not have any lines like that.

Once again, are you trying to consume the whole of each file as a single event? If so, you can do [this](https://discuss.elastic.co/t/append-metadata-to-every-event-in-xml-file-being-ingested-to-elasticsearch/165914/2).

---

_[View the full topic](https://discuss.elastic.co/t/xml-multiline-files/253577)._
