# Location to set max\_files\_open settings

**URL:** <https://discuss.elastic.co/t/location-to-set-max-files-open-settings/127384>\
**Category:** Logstash\
**Created:** [April 9, 2018, 8:23pm UTC](https://discuss.elastic.co/t/location-to-set-max-files-open-settings/127384 "2018-04-09T20:23:52Z")\
**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:** [April 9, 2018, 8:23pm UTC](https://discuss.elastic.co/t/location-to-set-max-files-open-settings/127384/1 "2018-04-09T20:23:52Z")

</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

1. System via limits.conf
2. Logstash in init.d
3. 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:** [May 7, 2018, 8:23pm UTC](https://discuss.elastic.co/t/location-to-set-max-files-open-settings/127384/2 "2018-05-07T20:23:56Z")

</div>

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