# \[Filebeat 5.2.1\]Registry.new: too many open files

**URL:** <https://discuss.elastic.co/t/filebeat-5-2-1-registry-new-too-many-open-files/84072>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 29, 2017, 1:27am UTC](https://discuss.elastic.co/t/filebeat-5-2-1-registry-new-too-many-open-files/84072 "2017-04-29T01:27:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kareny](https://avatars.discourse-cdn.com/v4/letter/k/3d9bf3/32.png) [@Kareny](https://discuss.elastic.co/u/Kareny)\
**Post date:** [April 29, 2017, 1:27am UTC](https://discuss.elastic.co/t/filebeat-5-2-1-registry-new-too-many-open-files/84072/1 "2017-04-29T01:27:11Z")

</div>

Getting errors in the filebeat log:  
[filebeat] registrar.go:151: Failed to create tempfile (/var/lib/filebeat/registry.new) for writing: open /var/lib/filebeat/registry.new: too many open files.

The ulimit on my server is unlimited and the number of the open files is around 5000.  
Not sure what's going on...

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [May 2, 2017, 8:25am UTC](https://discuss.elastic.co/t/filebeat-5-2-1-registry-new-too-many-open-files/84072/2 "2017-05-02T08:25:48Z")

</div>

Hi @kareny,

Could you please share the following info?, it should help us to diagnose your problem:

- How do you run the filebeat daemon
- What settings are you using? I'm curious to see why it has so many open files
- Can you dump the result of `ulimit -a` running it as the filebeat user?

Best regards

---

<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 30, 2017, 8:38am UTC](https://discuss.elastic.co/t/filebeat-5-2-1-registry-new-too-many-open-files/84072/3 "2017-05-30T08:38:20Z")

</div>

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