# Reading rolling log files on Win 7 doesn't work

**URL:** <https://discuss.elastic.co/t/reading-rolling-log-files-on-win-7-doesnt-work/40606>\
**Category:** Logstash\
**Created:** [February 1, 2016, 6:58am UTC](https://discuss.elastic.co/t/reading-rolling-log-files-on-win-7-doesnt-work/40606 "2016-02-01T06:58:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bongo\_zg](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bongo\_zg](https://discuss.elastic.co/u/bongo_zg)\
**Post date:** [February 1, 2016, 6:58am UTC](https://discuss.elastic.co/t/reading-rolling-log-files-on-win-7-doesnt-work/40606/1 "2016-02-01T06:58:54Z")

</div>

I have installed Logstash 2.1.1 on my Win 7 machine and set it up to read a specific folder for log files.

But, it appeared I could set it up only to look for a specific file, not to check for the whole folder or some files based on my criteria.

This is example of my config file:

> input {  
> file {  
> path =\> "d:\data\_generation\mylog\*.log"  
> start\_position =\> "beginning"  
> }  
> }  
> output {  
> stdout { codec =\> rubydebug }  
> }

The only option that worked was with a full filename that was in a PATH parameter.  
I'm a newbie in using Logstash, so I missed something, but it seems to me it is a bug.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 1, 2016, 7:13am UTC](https://discuss.elastic.co/t/reading-rolling-log-files-on-win-7-doesnt-work/40606/2 "2016-02-01T07:13:12Z")

</div>

Try using forward slashes instead of backslashes in the filename pattern.

---

<div class="post-metadata">

**Author:** ![bongo\_zg](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bongo\_zg](https://discuss.elastic.co/u/bongo_zg)\
**Post date:** [February 1, 2016, 7:59am UTC](https://discuss.elastic.co/t/reading-rolling-log-files-on-win-7-doesnt-work/40606/3 "2016-02-01T07:59:24Z")

</div>

yes, it worked now..

tnx

---

<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:** [July 6, 2017, 5:13am UTC](https://discuss.elastic.co/t/reading-rolling-log-files-on-win-7-doesnt-work/40606/4 "2017-07-06T05:13:36Z")

</div>


