# Skip log rotation at service restart?

**URL:** https://discuss.elastic.co/t/skip-log-rotation-at-service-restart/157876
**Category:** Beats
**Tags:** filebeat
**Created:** [November 22, 2018, 12:46pm UTC](https://discuss.elastic.co/t/skip-log-rotation-at-service-restart/157876 "2018-11-22T12:46:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![antwan](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@antwan](https://discuss.elastic.co/u/antwan)
#### Post date: [November 22, 2018, 12:46pm UTC](https://discuss.elastic.co/t/skip-log-rotation-at-service-restart/157876/1 "2018-11-22T12:46:21Z")

</div>

Continuing the discussion from [Filebeat's logs rotation malfunctioning](https://discuss.elastic.co/t/filebeats-logs-rotation-malfunctioning/95522/6):

Did you look into disabling log rotation at service restart? Would be a welcome feature.

/Anders

---

<div class="post-metadata">

### Author: ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)
#### Post date: [November 22, 2018, 1:21pm UTC](https://discuss.elastic.co/t/skip-log-rotation-at-service-restart/157876/2 "2018-11-22T13:21:15Z")

</div>

@antwan we currently have some discussion about allowing Filebeat to take care of the file rotation, here is the [public issue](https://github.com/elastic/beats/issues/7633).

---

<div class="post-metadata">

### Author: ![antwan](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@antwan](https://discuss.elastic.co/u/antwan)
#### Post date: [November 22, 2018, 1:36pm UTC](https://discuss.elastic.co/t/skip-log-rotation-at-service-restart/157876/3 "2018-11-22T13:36:54Z")

</div>

Does that issue cover the rotation of Filebeats own log?

After configuring `logging.files.rotateeverybytes` for all Beats, I was hoping for a single log files until they grew to my configured size.

---

<div class="post-metadata">

### Author: ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)
#### Post date: [November 22, 2018, 2:01pm UTC](https://discuss.elastic.co/t/skip-log-rotation-at-service-restart/157876/4 "2018-11-22T14:01:44Z")

</div>

Sorry confused the subject.

Which version of Filebeat you are running?

I know that we recently made changes in the log rotation and these should be present in 6.5.x.

---

<div class="post-metadata">

### Author: ![antwan](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@antwan](https://discuss.elastic.co/u/antwan)
#### Post date: [November 22, 2018, 2:04pm UTC](https://discuss.elastic.co/t/skip-log-rotation-at-service-restart/157876/5 "2018-11-22T14:04:35Z")

</div>

I am at `6.4.2` for Beats. Next sprint Im going to bring ELK and Beats to `6.5.x` so I'll look into rotation then. Thanks!

---

<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: [December 20, 2018, 2:17pm UTC](https://discuss.elastic.co/t/skip-log-rotation-at-service-restart/157876/6 "2018-12-20T14:17:50Z")

</div>

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