# Log rotation in filebeat: can I change filebeat log name to filebeat.log as opposed to filebeat?

**URL:** <https://discuss.elastic.co/t/log-rotation-in-filebeat-can-i-change-filebeat-log-name-to-filebeat-log-as-opposed-to-filebeat/99067>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 31, 2017, 11:13pm UTC](https://discuss.elastic.co/t/log-rotation-in-filebeat-can-i-change-filebeat-log-name-to-filebeat-log-as-opposed-to-filebeat/99067 "2017-08-31T23:13:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![filebeater](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/filebeater/32/18565_2.png) [@filebeater](https://discuss.elastic.co/u/filebeater)\
**Post date:** [August 31, 2017, 11:13pm UTC](https://discuss.elastic.co/t/log-rotation-in-filebeat-can-i-change-filebeat-log-name-to-filebeat-log-as-opposed-to-filebeat/99067/1 "2017-08-31T23:13:26Z")

</div>

By default, filebeat log file is named as filebeat, filebeat.1, filebeat.3..  
Can we set up the log rotation to be more like java log4j naming convention?  
e.g., filebeat.log, filebeat.log.2017-31-08

The reason I am asking this is that our production is mostly a java shop, having all the tools available for java. It has set ups to monitor production logs named as XXXX.log, and XXXX.log.yyyy-mm-dd, deleting older log files to make sure it does not fill up disk spaces.  
We would like to be able to leverage this without having to have separate setup for this?  
I am wondering How do you guys typically manage filebeat log files to make sure it does not fill up disks?

---

<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:** [September 1, 2017, 8:04pm UTC](https://discuss.elastic.co/t/log-rotation-in-filebeat-can-i-change-filebeat-log-name-to-filebeat-log-as-opposed-to-filebeat/99067/2 "2017-09-01T20:04:21Z")

</div>

Filebeat manages its own log rotation. You can specify the base name of the file (e.g. `logging.file.name: filebeat.log`), but not the suffix applied during rotation. The number of files to keep and the size that triggers rotation are configurable. [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)

---

<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:** [September 29, 2017, 8:04pm UTC](https://discuss.elastic.co/t/log-rotation-in-filebeat-can-i-change-filebeat-log-name-to-filebeat-log-as-opposed-to-filebeat/99067/3 "2017-09-29T20:04:32Z")

</div>

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