# Logstash: unable to read a file in windows

**URL:** <https://discuss.elastic.co/t/logstash-unable-to-read-a-file-in-windows/151111>\
**Category:** Logstash\
**Created:** [October 4, 2018, 7:28pm UTC](https://discuss.elastic.co/t/logstash-unable-to-read-a-file-in-windows/151111 "2018-10-04T19:28:49Z")\
**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 8, 2018, 2:01pm UTC](https://discuss.elastic.co/t/logstash-unable-to-read-a-file-in-windows/151111/3 "2018-10-08T14:01:47Z")

</div>

follow this sample

> [@Unable to load xml file in logstash](https://discuss.elastic.co/t/unable-to-load-xml-file-in-logstash/151318):
>
> Hello, can you please provide a sample example to upload xml file using logstash. I have tried a lot but unable to upload an xml file in logstash in windows machine. Waiting for the response. Ex: My XML file is as follows, --stations-- --station-- --id--Value1--/id-- --name\>Value2--/name-- --/station-- --/stations-- My conf file is as follows, input { file { path =\> "C:\Users\LENOVO\Downloads\stations.xml" start\_position =\> "beginning" #sincedb\_path =\> "/dev/null" exclude =\> "\*.…

---

_[View the full topic](https://discuss.elastic.co/t/logstash-unable-to-read-a-file-in-windows/151111)._
