# XML import

**URL:** <https://discuss.elastic.co/t/xml-import/154273>\
**Category:** Logstash\
**Created:** [October 27, 2018, 7:49am UTC](https://discuss.elastic.co/t/xml-import/154273 "2018-10-27T07:49:07Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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 29, 2018, 11:16am UTC](https://discuss.elastic.co/t/xml-import/154273/9 "2018-10-29T11:16:34Z")

</div>

hope this code helps you,

> [@Is it possible to change output structure](https://discuss.elastic.co/t/is-it-possible-to-change-output-structure/153759/17):
>
> The input code as per your requirement is as follows, 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 =\> "false" xpath =\> [ "/system/Report/ReportHost/@ip","ip", "/system/Report/ReportHost/HostProperties/tag/@pluginname","pluginname", …

---

_[View the full topic](https://discuss.elastic.co/t/xml-import/154273)._
