# Log rotation and filebeat

**URL:** <https://discuss.elastic.co/t/log-rotation-and-filebeat/140285>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 17, 2018, 8:47am UTC](https://discuss.elastic.co/t/log-rotation-and-filebeat/140285 "2018-07-17T08:47:31Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [July 20, 2018, 8:29am UTC](https://discuss.elastic.co/t/log-rotation-and-filebeat/140285/11 "2018-07-20T08:29:56Z")

</div>

All the options that rename the file and add a postfix to the name and create a new one to write the data in. Anything that does a copy or truncates the file I would stay away from.

---

_[View the full topic](https://discuss.elastic.co/t/log-rotation-and-filebeat/140285)._
