# Close\_eof

**URL:** <https://discuss.elastic.co/t/close-eof/142167>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 30, 2018, 11:53am UTC](https://discuss.elastic.co/t/close-eof/142167 "2018-07-30T11:53:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_kyllr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_kyllr/32/27610_2.png) [@\_kyllr](https://discuss.elastic.co/u/_kyllr)\
**Post date:** [July 30, 2018, 11:53am UTC](https://discuss.elastic.co/t/close-eof/142167/1 "2018-07-30T11:53:45Z")

</div>

Does config. `close_eof` recommended to use?

Thanks.

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [July 30, 2018, 2:36pm UTC](https://discuss.elastic.co/t/close-eof/142167/2 "2018-07-30T14:36:18Z")

</div>

As a general case, no, it's not recommended to use `close_eof` unless it fits your use case and you understand its implications of potential data loss.

Have a look at the documentation for the various `close_*` settings and how they relate to each other:  
[https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-input-log.html#filebeat-input-log-close-options](https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-input-log.html#filebeat-input-log-close-options)

---

<div class="post-metadata">

**Author:** ![\_kyllr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_kyllr/32/27610_2.png) [@\_kyllr](https://discuss.elastic.co/u/_kyllr)\
**Post date:** [July 31, 2018, 3:32am UTC](https://discuss.elastic.co/t/close-eof/142167/3 "2018-07-31T03:32:37Z")

</div>

Thanks @adrisr

---

<div class="post-metadata">

**Author:** ![nandan\_bigdata](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nandan\_bigdata](https://discuss.elastic.co/u/nandan_bigdata)\
**Post date:** [July 31, 2018, 3:39am UTC](https://discuss.elastic.co/t/close-eof/142167/4 "2018-07-31T03:39:29Z")

</div>

If you want to make sure beats has to stop once your current input source reach to end then you can use it.  
But this is not a good way to configure.

---

<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:** [August 28, 2018, 3:39am UTC](https://discuss.elastic.co/t/close-eof/142167/5 "2018-08-28T03:39:38Z")

</div>

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