# Overload of Filebeat?

**URL:** <https://discuss.elastic.co/t/overload-of-filebeat/79468>\
**Category:** Beats\
**Created:** [March 21, 2017, 4:24pm UTC](https://discuss.elastic.co/t/overload-of-filebeat/79468 "2017-03-21T16:24:06Z")\
**Posts on this page:** 6\
**Page:** 1

<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 21, 2017, 4:24pm UTC](https://discuss.elastic.co/t/overload-of-filebeat/79468/1 "2017-03-21T16:24:06Z")

</div>

Hello,

I try to uplaod 53 000 000 lines split into about 600 files with Filebeat 5.1 (Stack in 5.1)

I was surprised by the slowness of the upload of lines and i was look the log of filebeat and surprise there is 2 errors ... ☹

```
ERR Failed to create tempfile (/var/lib/filebeat/registry.new) for writing: open /var/lib/filebeat/registry.new: too many open files
ERR Writing of registry returned error: open /var/lib/filebeat/registry.new: too many open files. Continuing...

```

They return in a loop ... So do you know how to resovle this problem ?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [March 21, 2017, 6:22pm UTC](https://discuss.elastic.co/t/overload-of-filebeat/79468/2 "2017-03-21T18:22:50Z")

</div>

You may need to increase the number of file descriptors allowed for the process if you are reaching the limit (see `man ulimit` and `man limits.conf`).

---

<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, 9:53am UTC](https://discuss.elastic.co/t/overload-of-filebeat/79468/3 "2017-03-22T09:53:30Z")

</div>

@andrewkroh

I have modified this settings but it's continue :

elasticsearch.yml :  
bootstrap : true

systemd/system/elasticsearch.service  
LimitMEMLOCK=infinity

But you talk about an other paramters ?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [March 22, 2017, 1:42pm UTC](https://discuss.elastic.co/t/overload-of-filebeat/79468/4 "2017-03-22T13:42:01Z")

</div>

What you described are settings for Elasticsearch. You need to change settings for Filebeat. What OS are you using?

If your OS uses systemd you could add `LimitNOFILE=<new limit>` to the unit file for Filebeat at `/lib/systemd/system/filebeat.service`. (ref: [https://unix.stackexchange.com/questions/345595/how-to-set-ulimits-on-service-with-systemd/345596](https://unix.stackexchange.com/questions/345595/how-to-set-ulimits-on-service-with-systemd/345596))

---

<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, 2:19pm UTC](https://discuss.elastic.co/t/overload-of-filebeat/79468/5 "2017-03-22T14:19:35Z")

</div>

Ok i changed it i haven't error now

OS : RH 7.1  
Stack : 5.1

---

<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:** [April 11, 2017, 4:24pm UTC](https://discuss.elastic.co/t/overload-of-filebeat/79468/6 "2017-04-11T16:24:24Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
