# Create a config file \[xml\] for LOGSTASH

**URL:** <https://discuss.elastic.co/t/create-a-config-file-xml-for-logstash/162216>\
**Category:** Elasticsearch\
**Created:** [December 27, 2018, 9:22am UTC](https://discuss.elastic.co/t/create-a-config-file-xml-for-logstash/162216 "2018-12-27T09:22:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 27, 2018, 9:41am UTC](https://discuss.elastic.co/t/create-a-config-file-xml-for-logstash/162216/2 "2018-12-27T09:41:19Z")

</div>

hope this helps you,

> [@Unable to load xml file in logstash](https://discuss.elastic.co/t/unable-to-load-xml-file-in-logstash/151318/5):
>
> The correct output is obtained for below input code, hope this helps other people, Also, max\_lines number changes based on the maximum number of lines present in your xml file input { file { path =\> "C:/Users/LENOVO/Downloads/stations.xml" start\_position =\> "beginning" sincedb\_path =\> "NUL" codec =\> multiline { pattern =\> "^\<?stations.\*\>" negate =\> "true" what =\> "previous" auto\_flush\_interval =\> 1 max\_lines =\> 3000 } } } filter { xml { source =\> "message" target =\> "pars…

Regards

---

_[View the full topic](https://discuss.elastic.co/t/create-a-config-file-xml-for-logstash/162216)._
