# Close\_removed behavior

**URL:** <https://discuss.elastic.co/t/close-removed-behavior/66894>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 22, 2016, 4:38pm UTC](https://discuss.elastic.co/t/close-removed-behavior/66894 "2016-11-22T16:38:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jigsaw1079](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jigsaw1079](https://discuss.elastic.co/u/jigsaw1079)\
**Post date:** [November 22, 2016, 4:38pm UTC](https://discuss.elastic.co/t/close-removed-behavior/66894/1 "2016-11-22T16:38:32Z")

</div>

Hi All, I am new to filebeat. Recently I had a scenario that one of the log files was deleted, I could not see it using ls, but the disk space by this file was not released. After I reset filebeat, then disk space was released. The setting "close\_removed" is enabled by default, it should release the file handle when the file was deleted. Can this be a bug that the filebeat busy doing other things like talking to logstash and not going to the release handle logic? The version I used is 1.2.3\_amd64.deb Thanks.

---

<div class="post-metadata">

**Author:** ![shog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shog/32/12138_2.png) [@shog](https://discuss.elastic.co/u/shog)\
**Post date:** [November 22, 2016, 7:26pm UTC](https://discuss.elastic.co/t/close-removed-behavior/66894/2 "2016-11-22T19:26:26Z")

</div>

Hi @jigsaw1079

I believe close\_removed was only introduced in 5.0 branch, not in 1.2 or 1.3.

---

<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:** [November 23, 2016, 11:19am UTC](https://discuss.elastic.co/t/close-removed-behavior/66894/3 "2016-11-23T11:19:28Z")

</div>

@jigsaw1079 As @shog stated close\_removed is only available in filebeat 5.0

---

<div class="post-metadata">

**Author:** ![jigsaw1079](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jigsaw1079](https://discuss.elastic.co/u/jigsaw1079)\
**Post date:** [November 23, 2016, 2:28pm UTC](https://discuss.elastic.co/t/close-removed-behavior/66894/4 "2016-11-23T14:28:35Z")

</div>

Oh~~, ok. Thanks. Then I need to upgrade my filebeat.

---

<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:** [December 21, 2016, 2:28pm UTC](https://discuss.elastic.co/t/close-removed-behavior/66894/5 "2016-12-21T14:28:40Z")

</div>

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