# Increase LS\_OPEN\_FILES beyond 16384

**URL:** <https://discuss.elastic.co/t/increase-ls-open-files-beyond-16384/95478>\
**Category:** Logstash\
**Created:** [August 2, 2017, 8:26am UTC](https://discuss.elastic.co/t/increase-ls-open-files-beyond-16384/95478 "2017-08-02T08:26:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitabrev](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mitabrev](https://discuss.elastic.co/u/mitabrev)\
**Post date:** [August 2, 2017, 8:26am UTC](https://discuss.elastic.co/t/increase-ls-open-files-beyond-16384/95478/1 "2017-08-02T08:26:55Z")

</div>

Hi guys,

Hope my question isn't too trivial but I can't seem to find any other setting to increase this value.

```
PID for logstash service is XXX and proc limits:
    cat /proc/XXX/limits
    Max open files 16384 16384 files

```

I added 50000 to:

```
/etc/security/limits.conf
logstash hard nofile 50000

/etc/logstash/startup.options
    # Open file limit
    LS_OPEN_FILES=50000

/etc/default/logstash
LS_OPEN_FILES="50000"

and to .conf file
max_open_files => 50000

```

I don't have a logstash file in /etc/init.d.

I rebooted the server and after starting logstash the limit is still 16384.

Can you help what I'm missing?  
Server is running CentOS 7.

Thank you!

---

<div class="post-metadata">

**Author:** ![mitabrev](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mitabrev](https://discuss.elastic.co/u/mitabrev)\
**Post date:** [August 2, 2017, 12:11pm UTC](https://discuss.elastic.co/t/increase-ls-open-files-beyond-16384/95478/2 "2017-08-02T12:11:17Z")

</div>

Got it. Needed alto to change the value in:

```
/etc/systemd/system/logstash.service
LimitNOFILE=50000

```

And restart.

---

<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:** [August 30, 2017, 12:11pm UTC](https://discuss.elastic.co/t/increase-ls-open-files-beyond-16384/95478/3 "2017-08-30T12:11:28Z")

</div>

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