# Filebeat's logs rotation malfunctioning

**URL:** https://discuss.elastic.co/t/filebeats-logs-rotation-malfunctioning/95522
**Category:** Beats
**Tags:** filebeat
**Created:** [August 2, 2017, 12:33pm UTC](https://discuss.elastic.co/t/filebeats-logs-rotation-malfunctioning/95522 "2017-08-02T12:33:48Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [August 8, 2017, 1:06pm UTC](https://discuss.elastic.co/t/filebeats-logs-rotation-malfunctioning/95522/6 "2017-08-08T13:06:06Z")

</div>

Which exact filebeat version are you using? Skimming the code, I suspect a potential race that might be triggered due to enabling `-httpprof`. This race might lead to files being rotated twice on startup.

Anyway, instead of rotation logs on every restart, we should also consider to change log rotation, to continue old files and only rotate once the configure size limit is reached.

---

_[View the full topic](https://discuss.elastic.co/t/filebeats-logs-rotation-malfunctioning/95522)._
