# \[SOLVED\] Filebeat keeps open files forever

**URL:** <https://discuss.elastic.co/t/solved-filebeat-keeps-open-files-forever/40098>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 26, 2016, 8:31am UTC](https://discuss.elastic.co/t/solved-filebeat-keeps-open-files-forever/40098 "2016-01-26T08:31:03Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [September 5, 2016, 10:53am UTC](https://discuss.elastic.co/t/solved-filebeat-keeps-open-files-forever/40098/21 "2016-09-05T10:53:18Z")

</div>

@dwradcliffe There are some edge cases where it can happen that in 1.2.3 file handlers are leaked. All these edge cases should be resolved in the 5.0 releases. Could you test the 5.0.0-alpha5 release or nightly build ([https://beats-nightlies.s3.amazonaws.com/index.html?prefix=filebeat/](https://beats-nightlies.s3.amazonaws.com/index.html?prefix=filebeat/)) to see if you still have the issue? To know more about your case, I would also need config file and some log outputs. Please open a new topic for this.

---

<div class="post-metadata">

**Author:** ![ronny.lerch](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ronny.lerch](https://discuss.elastic.co/u/ronny.lerch)\
**Post date:** [October 11, 2016, 5:10pm UTC](https://discuss.elastic.co/t/solved-filebeat-keeps-open-files-forever/40098/22 "2016-10-11T17:10:35Z")

</div>

I would like to join the discussion. I'm following and applying changes in this forum the past week.  
Sadly I still experience the problem:  
filebeat 31 root 1r REG 253,16 10486094 4751403 /opt/xxx/logs/supervisor.out.log.10 (deleted)  
.  
.  
.

Currently I'm running filebeat version 6.0.0-alpha1 with following configuration:  
paths:  
- /opt/xxx/logs/\*.log

```
  close_older: 1m
  ignore_older: 1m
  scan_frequency: 10s
  force_close_files: true

```

I appreciate any input to solve the problem.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [October 11, 2016, 6:43pm UTC](https://discuss.elastic.co/t/solved-filebeat-keeps-open-files-forever/40098/23 "2016-10-11T18:43:56Z")

</div>

@ronny.lerch Can you open a new discuss topic with this as this one is already marked as resovled. Can you share there your full config and if possible some log files from filebeat?

---

<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 5, 2017, 9:50pm UTC](https://discuss.elastic.co/t/solved-filebeat-keeps-open-files-forever/40098/24 "2017-07-05T21:50:30Z")

</div>



[Previous page](https://discuss.elastic.co/t/solved-filebeat-keeps-open-files-forever/40098.md?page=1)
