# Does setting close\_inactive to 0 means disable this option?

**URL:** https://discuss.elastic.co/t/does-setting-close-inactive-to-0-means-disable-this-option/185779
**Category:** Beats
**Tags:** filebeat
**Created:** [June 14, 2019, 7:09am UTC](https://discuss.elastic.co/t/does-setting-close-inactive-to-0-means-disable-this-option/185779 "2019-06-14T07:09:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![biello](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@biello](https://discuss.elastic.co/u/biello)
#### Post date: [June 14, 2019, 7:09am UTC](https://discuss.elastic.co/t/does-setting-close-inactive-to-0-means-disable-this-option/185779/1 "2019-06-14T07:09:06Z")

</div>

I am confused about this because the docs doesn't make it clear...

---

<div class="post-metadata">

### Author: ![biello](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@biello](https://discuss.elastic.co/u/biello)
#### Post date: [June 14, 2019, 7:12am UTC](https://discuss.elastic.co/t/does-setting-close-inactive-to-0-means-disable-this-option/185779/2 "2019-06-14T07:12:44Z")

</div>

Oh, I am using Filebeat 7.1

---

<div class="post-metadata">

### Author: ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)
#### Post date: [June 19, 2019, 7:14pm UTC](https://discuss.elastic.co/t/does-setting-close-inactive-to-0-means-disable-this-option/185779/3 "2019-06-19T19:14:01Z")

</div>

There is currently no way to disable that options in filebeat,l you can use a really high values if you want though.

May I ask why you feel the need to disable that option?

---

<div class="post-metadata">

### Author: ![biello](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@biello](https://discuss.elastic.co/u/biello)
#### Post date: [June 27, 2019, 12:28pm UTC](https://discuss.elastic.co/t/does-setting-close-inactive-to-0-means-disable-this-option/185779/4 "2019-06-27T12:28:04Z")

</div>

So good to see your reply, thanks! The case is I'm using filebeat to collect logs from docker containers and I don't want lost any log even the log file is deleted by docker daemon(I set 1G per container). I used to believe that disable close\_inactive would meet my needs, but I find I was wrong after reading the docs again:rofl:. The file will remain open util EOF even there is no new data append for a long time(the "inactive" I used to believe). Thank you very much and sorry for the late reply.

---

<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 25, 2019, 12:28pm UTC](https://discuss.elastic.co/t/does-setting-close-inactive-to-0-means-disable-this-option/185779/5 "2019-07-25T12:28:06Z")

</div>

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