# Filebeats open files issues

**URL:** <https://discuss.elastic.co/t/filebeats-open-files-issues/41033>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 5, 2016, 8:24am UTC](https://discuss.elastic.co/t/filebeats-open-files-issues/41033 "2016-02-05T08:24:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![novice](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@novice](https://discuss.elastic.co/u/novice)\
**Post date:** [February 5, 2016, 8:24am UTC](https://discuss.elastic.co/t/filebeats-open-files-issues/41033/1 "2016-02-05T08:24:39Z")

</div>

I am using filebeats on my elk stack (recently migrated from logstash-forwarder). Filebeats doesn't releases the deleted log files which is a major concern for us.  
I have used the following config, still it holds up the deleted files.

```auto
filebeat:
  prospectors:
    -
      paths
        - /var/log/syslog

      input_type: log

      fields:
         environment: 
         app: 
         app_ip: 

      ignore_older: 1h
      force_close_files: true

  registry_file: /var/lib/filebeat/registry
output:

  logstash:
    hosts: [":5043"]

    tls:
      # List of root certificates for HTTPS server verifications
      certificate_authorities: ["/etc/pki/tls/certs/logstash-forwarder.crt"]
shipper:
logging:

    rotateeverybytes: 10485760 # = 10MB

```

---

<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:** [February 29, 2016, 8:23am UTC](https://discuss.elastic.co/t/filebeats-open-files-issues/41033/2 "2016-02-29T08:23:01Z")

</div>

@novice Sorry for the late reply. Which version of filebeat are you using? Which is your OS?

---

<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:55pm UTC](https://discuss.elastic.co/t/filebeats-open-files-issues/41033/3 "2017-07-05T21:55:17Z")

</div>


