# Logstash failed to open file

**URL:** <https://discuss.elastic.co/t/logstash-failed-to-open-file/65019>\
**Category:** Logstash\
**Created:** [November 4, 2016, 3:46pm UTC](https://discuss.elastic.co/t/logstash-failed-to-open-file/65019 "2016-11-04T15:46:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salafer](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Salafer](https://discuss.elastic.co/u/Salafer)\
**Post date:** [November 4, 2016, 3:46pm UTC](https://discuss.elastic.co/t/logstash-failed-to-open-file/65019/1 "2016-11-04T15:46:57Z")

</div>

Hi i have a simple problem.  
Logstash 5.0 can't open my log file. It simply say:

[2016-11-04T16:11:39,838][WARN][logstash.inputs.file] failed to open /logs/icp2/localhost\_access\_log.2016-10-31.txt: \logs\icp2\localhost\_access\_log.2016-10-31.txt

It does correctly find the file destination but can not open it. In debug log it says java NoSuchFileException even it sets and finds the file correctly.

config looks like this  
file {  
type =\> "lfaccesslog"  
path =\> "/logs/_/localhost\_access\_log._"  
start\_position =\> "beginning"  
}

any sugestions?

---

<div class="post-metadata">

**Author:** ![Arthur\_Francis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arthur_francis/32/13065_2.png) [@Arthur\_Francis](https://discuss.elastic.co/u/Arthur_Francis)\
**Post date:** [November 23, 2016, 4:24pm UTC](https://discuss.elastic.co/t/logstash-failed-to-open-file/65019/2 "2016-11-23T16:24:14Z")

</div>

Have you tried `> localhost_access_log.*.txt` ?

---

<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, 4:30am UTC](https://discuss.elastic.co/t/logstash-failed-to-open-file/65019/3 "2017-07-06T04:30:17Z")

</div>

Closed on July 6, 2017, 4:30am UTC


