# Unable to read log file on windows using file input

**URL:** <https://discuss.elastic.co/t/unable-to-read-log-file-on-windows-using-file-input/2050>\
**Category:** Logstash\
**Created:** [June 5, 2015, 11:24pm UTC](https://discuss.elastic.co/t/unable-to-read-log-file-on-windows-using-file-input/2050 "2015-06-05T23:24:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suresh\_Ramkrishnaiah](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Suresh\_Ramkrishnaiah](https://discuss.elastic.co/u/Suresh_Ramkrishnaiah)\
**Post date:** [June 5, 2015, 11:24pm UTC](https://discuss.elastic.co/t/unable-to-read-log-file-on-windows-using-file-input/2050/1 "2015-06-05T23:24:34Z")

</div>

On windows instance I have setup logstash 1.5 to read apache log files using the file input plugin, when I start the logstash instance it goes and globs all the files and throws this error

{:timestamp=\>"2015-06-05T19:03:17.048000-0400", :message=\>"(warn supressed) failed to open D://Apache/logs/access.log.1433289600: cannot link Java class RubyFileExt", :level=\>:debug, :file=\>"/Software/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/tail.rb", :line=\>"134", :method=\>"\_open\_file"}

{:timestamp=\>"2015-06-05T19:03:17.048000-0400", :message=\>"(warn supressed) failed to open D:/Apache/logs/access.log.1433462400: cannot link Java class RubyFileExt", :level=\>:debug, :file=\>"/Software/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/tail.rb", :line=\>"134", :method=\>"\_open\_file"}

Here's my file input config,

file {  
type =\> "apache\_access"  
path =\> "D:/Apache/logs/access._"  
exclude =\> ["_.gz", "_.zip", "_.tar", "httpd.pid", "deflate.log", "error.\*"]  
start\_position =\> end  
sincedb\_path =\> "E:/Software/logstash-1.5.0/bin/sincedb\_access"  
stat\_interval =\> 5  
sincedb\_write\_interval =\> 5  
}  
}

is this because the file is locked? or something else is wrong ?

Suresh

---

<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:38am UTC](https://discuss.elastic.co/t/unable-to-read-log-file-on-windows-using-file-input/2050/2 "2017-07-06T05:38:18Z")

</div>


