# Filebeat too many open files Error

**URL:** <https://discuss.elastic.co/t/filebeat-too-many-open-files-error/46118>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 2, 2016, 6:34am UTC](https://discuss.elastic.co/t/filebeat-too-many-open-files-error/46118 "2016-04-02T06:34:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumantha\_Kannantha](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Sumantha\_Kannantha](https://discuss.elastic.co/u/Sumantha_Kannantha)\
**Post date:** [April 2, 2016, 6:34am UTC](https://discuss.elastic.co/t/filebeat-too-many-open-files-error/46118/1 "2016-04-02T06:34:23Z")

</div>

I have installed latest version of filebeat (Version: 1.2.0). I am getting below error in /var/log/messages

/usr/bin/filebeat[22662]: log.go:103: Stop Harvesting. Unexpected file opening error: open /opt/mount1/sa-stats/log/filepuller/rolloverlogs/filepuller-20160402060412.log: too many open files

Even after increasing FD limits using command sysctl -w fs.file-max=100000 I am facing same error

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 2, 2016, 6:54pm UTC](https://discuss.elastic.co/t/filebeat-too-many-open-files-error/46118/2 "2016-04-02T18:54:16Z")

</div>

How many files match the filename patterns you have specified?

---

<div class="post-metadata">

**Author:** ![Sumantha\_Kannantha](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Sumantha\_Kannantha](https://discuss.elastic.co/u/Sumantha_Kannantha)\
**Post date:** [April 4, 2016, 9:16am UTC](https://discuss.elastic.co/t/filebeat-too-many-open-files-error/46118/3 "2016-04-04T09:16:15Z")

</div>

Thanks for your help. This issue got solved after setting process limit (ulimit -n 50000) in service script.

---

<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:** [July 5, 2017, 9:53pm UTC](https://discuss.elastic.co/t/filebeat-too-many-open-files-error/46118/4 "2017-07-05T21:53:54Z")

</div>


