# Trouble getting XML into usable format

**URL:** <https://discuss.elastic.co/t/trouble-getting-xml-into-usable-format/153009>\
**Category:** Logstash\
**Created:** [October 18, 2018, 1:37pm UTC](https://discuss.elastic.co/t/trouble-getting-xml-into-usable-format/153009 "2018-10-18T13:37:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 25, 2018, 7:00am UTC](https://discuss.elastic.co/t/trouble-getting-xml-into-usable-format/153009/3 "2018-10-25T07:00:08Z")

</div>

hope this example helps you,

> [@Is it possible to change output structure](https://discuss.elastic.co/t/is-it-possible-to-change-output-structure/153759/6):
>
> The xml file which you have posted has an error, didnot close the tag \<tag pluginname="LastUnauthenticatedResults"\>1539\</tag\> The input code is as follows as per your requirement, input { file { path =\> "D:/xxxxx/ELKStack/sample.xml" start\_position =\> "beginning" sincedb\_path =\> "NUL" codec =\> multiline { pattern =\> "" negate =\> "true" what =\> "previous" auto\_flush\_interval =\> 1 max\_lines =\> 333333 } } } filter { xml { source =\> "message" target =\> "parsed" store\_xml =\> "fal…

---

_[View the full topic](https://discuss.elastic.co/t/trouble-getting-xml-into-usable-format/153009)._
