# .filebeat file grows too big, how to rotate this file?

**URL:** <https://discuss.elastic.co/t/filebeat-file-grows-too-big-how-to-rotate-this-file/43438>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 3, 2016, 8:35pm UTC](https://discuss.elastic.co/t/filebeat-file-grows-too-big-how-to-rotate-this-file/43438 "2016-03-03T20:35:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharon.c](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharon.c/32/16076_2.png) [@sharon.c](https://discuss.elastic.co/u/sharon.c)\
**Post date:** [March 3, 2016, 8:35pm UTC](https://discuss.elastic.co/t/filebeat-file-grows-too-big-how-to-rotate-this-file/43438/1 "2016-03-03T20:35:27Z")

</div>

In filebeat’s configuration yml file, I set the registery file as .filebeat, so the file name and offset information is stored in this file for disaster recovery.  
When the .filebeat file grows bigger and bigger, is there any mechanism to rotate this .filebeat file or clear partially the dated offset records?

---

<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:** [March 3, 2016, 8:52pm UTC](https://discuss.elastic.co/t/filebeat-file-grows-too-big-how-to-rotate-this-file/43438/2 "2016-03-03T20:52:26Z")

</div>

Not yet, see [https://github.com/elastic/beats/issues/1022#issuecomment-190652538](https://github.com/elastic/beats/issues/1022#issuecomment-190652538)

---

<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/filebeat-file-grows-too-big-how-to-rotate-this-file/43438/3 "2017-07-05T21:55:02Z")

</div>


