# Failed opening... too many open files

**URL:** <https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 28, 2015, 1:19pm UTC](https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045 "2015-12-28T13:19:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Bozsik](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Adam\_Bozsik](https://discuss.elastic.co/u/Adam_Bozsik)\
**Post date:** [December 28, 2015, 1:19pm UTC](https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045/1 "2015-12-28T13:19:11Z")

</div>

Hi,

I'd like to send my logfiles (about 5000 files) from a syslog server but I get error messages like this:

/usr/bin/filebeat[8209]: log.go:197: Failed opening /var/log/remote/cts/daemon.log: open /var/log/remote/cts/daemon.log: too many open files

Is it possible to increase the number of files somehow?

best regards,

Adam

---

<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:** [December 28, 2015, 3:26pm UTC](https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045/2 "2015-12-28T15:26:08Z")

</div>

This sounds more like a limitation of your operating system then filebeat. What is the current setting of maximum open files on your OS? Try the "ulimit -n" command to see the limit per process.

---

<div class="post-metadata">

**Author:** ![Adam\_Bozsik](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Adam\_Bozsik](https://discuss.elastic.co/u/Adam_Bozsik)\
**Post date:** [December 28, 2015, 3:54pm UTC](https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045/3 "2015-12-28T15:54:04Z")

</div>

Thank you for your help. I wanted to answer my question but you were faster. 🙂  
What tricked me is that for root the file limit was 200000 but the daemon (no matter it runs as root)...

---

<div class="post-metadata">

**Author:** ![Beuhlet\_Reseau](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@Beuhlet\_Reseau](https://discuss.elastic.co/u/Beuhlet_Reseau)\
**Post date:** [March 22, 2017, 10:39am UTC](https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045/4 "2017-03-22T10:39:45Z")

</div>

Excuse me but, I have 1600 files only 😕

Sum of lines : 55 000 000

I haven't more of 65 000 files open so i don't understand why this problem !

Could you indicate me where i can configure this options of limit ?

**I run under root too**

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 22, 2017, 10:46am UTC](https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045/5 "2017-03-22T10:46:38Z")

</div>

Please open a new issue for your problem and provide as much detail as you cam.

---

<div class="post-metadata">

**Author:** ![Beuhlet\_Reseau](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@Beuhlet\_Reseau](https://discuss.elastic.co/u/Beuhlet_Reseau)\
**Post date:** [March 22, 2017, 1:25pm UTC](https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045/6 "2017-03-22T13:25:35Z")

</div>

Why open new issue ? This isn't resolved .....

---

<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:** [March 22, 2017, 1:37pm UTC](https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045/7 "2017-03-22T13:37:45Z")

</div>

@Beuhlet_Reseau The previous thread was resolved and is a year old one. We prefer to have new questions in a new thread. I'm going to close this one.

---

<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:** [March 22, 2017, 1:37pm UTC](https://discuss.elastic.co/t/failed-opening-too-many-open-files/38045/8 "2017-03-22T13:37:56Z")

</div>


