# Max\_files\_open location

**URL:** <https://discuss.elastic.co/t/max-files-open-location/132151>\
**Category:** Logstash\
**Created:** [May 16, 2018, 2:30pm UTC](https://discuss.elastic.co/t/max-files-open-location/132151 "2018-05-16T14:30:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsaeks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rsaeks/32/5068_2.png) [@rsaeks](https://discuss.elastic.co/u/rsaeks)\
**Post date:** [May 16, 2018, 2:30pm UTC](https://discuss.elastic.co/t/max-files-open-location/132151/1 "2018-05-16T14:30:49Z")

</div>

I've spent some time searching through the forums (and Google - but many sources are 2+ years old and the paths have changed) to find the locations to set max\_files\_open for logstash since I'm hitting the 4095 maximum level and could use some guidance on the locations to set this. One post mentioned setting it

System via limits.conf  
Logstash in init.d  
input-files plugin  
I've set it in the limits.conf file to:

logstash - nofile unlimited  
But do not have a logstash file in the init.d directory and am unsure where in the inputs-files plugin to set the number.

I'm running Logstash on a CentOS 7 machine with version 6.2.3. Any help would be greatly appreciated!

---

<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:** [June 13, 2018, 2:30pm UTC](https://discuss.elastic.co/t/max-files-open-location/132151/2 "2018-06-13T14:30:55Z")

</div>

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