# Filebeat configuration: clean\_\*

**URL:** <https://discuss.elastic.co/t/filebeat-configuration-clean/142553>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 1, 2018, 11:17am UTC](https://discuss.elastic.co/t/filebeat-configuration-clean/142553 "2018-08-01T11:17:55Z")\
**Posts on this page:** 3\
**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:** [August 1, 2018, 11:17am UTC](https://discuss.elastic.co/t/filebeat-configuration-clean/142553/1 "2018-08-01T11:17:55Z")

</div>

Is there a chance to clean the state of file or filebeat won't re-read the file again after the close\_eof is reached? How?

Thanks.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [August 1, 2018, 4:56pm UTC](https://discuss.elastic.co/t/filebeat-configuration-clean/142553/2 "2018-08-01T16:56:30Z")

</div>

I'm not exactly sure what you are asking. Could you try to rephrase the question or add more context about the problem you are trying to solve.

When `close_eof` is enabled Filebeat will close its file descriptor when the end-of-file is reached.

When an inode is cleaned from the registry, and then Filebeat reads it again it will treat it as new.

---

<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 29, 2018, 4:56pm UTC](https://discuss.elastic.co/t/filebeat-configuration-clean/142553/3 "2018-08-29T16:56:35Z")

</div>

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