# 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:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mails2amit.k](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@mails2amit.k](https://discuss.elastic.co/u/mails2amit.k)\
**Post date:** [October 4, 2018, 7:28pm UTC](https://discuss.elastic.co/t/logstash-unable-to-read-a-file-in-windows/151111/1 "2018-10-04T19:28:49Z")

</div>

Hi Team,

I dont see the logstash is reading the input file I have given. is there any problem in my config file?  
Output file is not getting generated. and my input file has 3 lines of text only.

config file - Desktop\softwares\logstash-6.4.1\bin\logstash.conf

input{  
file{  
path =\> "C:\Users\AKumar\Desktop\softwares\logstash-6.4.1\bin\testLog.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
}

}

output{  
file  
{  
path =\> "C:\Users\AKumar\Desktop\amat\tasks\logExtractor\Dummy.log"  
}  
}

Can someone please help. Its bit urgent.

---

<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:00pm UTC](https://discuss.elastic.co/t/logstash-unable-to-read-a-file-in-windows/151111/2 "2018-10-08T14:00:24Z")

</div>

Hello,

change the path to,  
path =\> "C:/Users/AKumar/Desktop/softwares/logstash-6.4.1/bin/testLog.log"

Hope this will help you.

---

<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 =\> "\*.…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 5, 2018, 2:01pm UTC](https://discuss.elastic.co/t/logstash-unable-to-read-a-file-in-windows/151111/4 "2018-11-05T14:01:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
