# Logstash file descriptors keep increasing

**URL:** <https://discuss.elastic.co/t/logstash-file-descriptors-keep-increasing/192433>\
**Category:** Logstash\
**Created:** [July 26, 2019, 12:22pm UTC](https://discuss.elastic.co/t/logstash-file-descriptors-keep-increasing/192433 "2019-07-26T12:22:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![faika](https://avatars.discourse-cdn.com/v4/letter/f/7c8e57/32.png) [@faika](https://discuss.elastic.co/u/faika)\
**Post date:** [July 26, 2019, 12:22pm UTC](https://discuss.elastic.co/t/logstash-file-descriptors-keep-increasing/192433/1 "2019-07-26T12:22:30Z")

</div>

i'am using logstash version logstash 6.4.3. The problem is the number of file descriptors that keeps increasing and each time i restart logstash it gets back to normal then increases again.  
Is that normal behavior ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 29, 2019, 12:12pm UTC](https://discuss.elastic.co/t/logstash-file-descriptors-keep-increasing/192433/2 "2019-07-29T12:12:54Z")

</div>

Maybe. What does your configuration look like?

---

<div class="post-metadata">

**Author:** ![faika](https://avatars.discourse-cdn.com/v4/letter/f/7c8e57/32.png) [@faika](https://discuss.elastic.co/u/faika)\
**Post date:** [August 19, 2019, 8:09am UTC](https://discuss.elastic.co/t/logstash-file-descriptors-keep-increasing/192433/3 "2019-08-19T08:09:14Z")

</div>

My logstash.yml is like this:

> ```
> path.data: /var/lib/logstash
> config.reload.automatic: true
> config.reload.interval: 300s
> path.logs: /var/log/logstash
> 
> ```

and since i'am getting syslog logs, my conf for syslog is:

```
    input {
    syslog {
        port => 5040
    }
}
  output {
    elasticsearch {
        hosts => ["<ip1>:9200", "<ip2>:9200", "<ip3>:9200"]
        index => "srv-syslog-%{+YYYY.MM.dd}"
    }
}

```

---

<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:** [September 16, 2019, 8:09am UTC](https://discuss.elastic.co/t/logstash-file-descriptors-keep-increasing/192433/4 "2019-09-16T08:09:26Z")

</div>

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