# Log Rotation

**URL:** https://discuss.elastic.co/t/log-rotation/66174
**Category:** Beats
**Tags:** filebeat
**Created:** [November 15, 2016, 10:53pm UTC](https://discuss.elastic.co/t/log-rotation/66174 "2016-11-15T22:53:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![phil.ireland](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@phil.ireland](https://discuss.elastic.co/u/phil.ireland)
#### Post date: [November 15, 2016, 10:53pm UTC](https://discuss.elastic.co/t/log-rotation/66174/1 "2016-11-15T22:53:18Z")

</div>

Is there a way in the beats config to rotate the log files. Running out of storage daily.

---

<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: [November 16, 2016, 12:23am UTC](https://discuss.elastic.co/t/log-rotation/66174/2 "2016-11-16T00:23:18Z")

</div>

You can configure Filebeat to rotate its own log files based on size and you can configure the number of log files to keep. By default it keeps 7 logs files of 10MB each. See the logging options for more details: [https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#\_files\_rotateeverybytes](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#_files_rotateeverybytes)

Filebeat does not rotate or manage in any way the files that it monitors. For that I would recommend using system tools like logrotate.

---

<div class="post-metadata">

### Author: ![phil.ireland](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@phil.ireland](https://discuss.elastic.co/u/phil.ireland)
#### Post date: [November 22, 2016, 3:07pm UTC](https://discuss.elastic.co/t/log-rotation/66174/3 "2016-11-22T15:07:26Z")

</div>

Thank You

---

<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, 2016, 3:08pm UTC](https://discuss.elastic.co/t/log-rotation/66174/4 "2016-12-20T15:08:00Z")

</div>

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