# Each: active: file expired for #{path} // :timeout for #{path}, closing file

**URL:** <https://discuss.elastic.co/t/each-active-file-expired-for-path-timeout-for-path-closing-file/125716>\
**Category:** Logstash\
**Created:** [March 27, 2018, 9:01am UTC](https://discuss.elastic.co/t/each-active-file-expired-for-path-timeout-for-path-closing-file/125716 "2018-03-27T09:01:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cedef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cedef/32/29260_2.png) [@cedef](https://discuss.elastic.co/u/cedef)\
**Post date:** [March 27, 2018, 9:01am UTC](https://discuss.elastic.co/t/each-active-file-expired-for-path-timeout-for-path-closing-file/125716/1 "2018-03-27T09:01:00Z")

</div>

**Behaviour from user point of view:**

I'm currently facing the following issue: logstash _sometimes_ "miss" log files.  
When restarting it it parses the file correctly and data are filtered then passed to output plugin.

When switching logstash to `debug` loglevel, I'm getting this message (repeated thousands times until Logstash is restarted):  
[2018-03-27T05:14:48,668][DEBUG][logstash.inputs.file] each: active: file expired: /myfiolder/logs/my-batch-log-file.log  
[2018-03-27T05:14:48,668][DEBUG][logstash.inputs.file] :timeout for /myfiolder/logs/my-batch-log-file.log, closing file

- logstash version: 5.5.1-1
- logstash-input-file: 4.0.2
- filewatch version: 0.9.0

**What I've searched and understood so far:**

The message _does not_ belong to logstash code directly but comes from the `filewatch` ruby gem

I've _no idea_ what is happening here, even by looking inside the `filewatch` code:

- it does not look like a Ruby exception
- it does not look like a logstash input-file plugin wrong behaviour
- it does not look like a logstash core problem
- there is no Google results for the debug logs keywords

And so... here I am... asking help or idea from where to start the troubleshooting...

---

<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:** [April 24, 2018, 9:01am UTC](https://discuss.elastic.co/t/each-active-file-expired-for-path-timeout-for-path-closing-file/125716/2 "2018-04-24T09:01:16Z")

</div>

Closed on April 24, 2018, 9:01am UTC

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