# Reached open files limit Logstash

**URL:** <https://discuss.elastic.co/t/reached-open-files-limit-logstash/65648>\
**Category:** Logstash\
**Created:** [November 10, 2016, 11:28am UTC](https://discuss.elastic.co/t/reached-open-files-limit-logstash/65648 "2016-11-10T11:28:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![espogian](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@espogian](https://discuss.elastic.co/u/espogian)\
**Post date:** [November 10, 2016, 11:28am UTC](https://discuss.elastic.co/t/reached-open-files-limit-logstash/65648/1 "2016-11-10T11:28:45Z")

</div>

Hello, my pipeline is stuck due to this error:

`Reached open files limit: 4095, set by the 'max_open_files' option or default, files yet to open: 66922`

From the documentation, especially this interesting blog post: [https://www.elastic.co/blog/the-evolving-story-about-the-logstash-file-input](https://www.elastic.co/blog/the-evolving-story-about-the-logstash-file-input)

I undestand that these parameters, like `max_open_files`, are customizable.  
However, my guess is that Logstash is never closing the files.

Could the reason be the fact that the files do not have the end of line (`\n`) at the end?

**Update:**

I tried to add some end of lines to some files with `echo "" >> filename`  
However the `files yet to open` counter in the Logstash pipeline doesn't change at all.

---

<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:** [December 8, 2016, 11:28am UTC](https://discuss.elastic.co/t/reached-open-files-limit-logstash/65648/2 "2016-12-08T11:28:54Z")

</div>

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