# Kibana LogFile Rotation or LogFile Rolling Appender

**URL:** <https://discuss.elastic.co/t/kibana-logfile-rotation-or-logfile-rolling-appender/93610>\
**Category:** Kibana\
**Created:** [July 18, 2017, 3:12pm UTC](https://discuss.elastic.co/t/kibana-logfile-rotation-or-logfile-rolling-appender/93610 "2017-07-18T15:12:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiranilla](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@kiranilla](https://discuss.elastic.co/u/kiranilla)\
**Post date:** [July 18, 2017, 3:12pm UTC](https://discuss.elastic.co/t/kibana-logfile-rotation-or-logfile-rolling-appender/93610/1 "2017-07-18T15:12:46Z")

</div>

I tried logging the kibana console output to a file for that I have done some configuration setting in kibana.yml file as shown below:  
`#logging.dest: stdout`  
`logging.dest: C:\ELK\ELK5.4\ELK5.4Backup\logs\kibana\kibana.log`

but the rolling of the log file is not happening on everynight.  
I tired giving the log name as shown below  
`logging.dest: C:\ELK\ELK5.4\ELK5.4Backup\logs\kibana\kibana-${sys:ls.log.format}.log`  
which i am trying to create a filename dyanamically (eg: kibana-mm-dd-yyyy.log) on every night to purge but this did not work.

Is there any way that we can also log the details with error and output as well in different files or in same files like :  
`kibana.stdout` as well as `kibana.stderr`

Could you please suggest on this.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 19, 2017, 7:18pm UTC](https://discuss.elastic.co/t/kibana-logfile-rotation-or-logfile-rolling-appender/93610/2 "2017-07-19T19:18:19Z")

</div>

Kibana doesn't handle log rotation on it's own, so you'll need to use an external utility such as "logrotate". I don't know a similar tool for Windows, but if you search around you should be able to find one.

---

<div class="post-metadata">

**Author:** ![kiranilla](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@kiranilla](https://discuss.elastic.co/u/kiranilla)\
**Post date:** [July 20, 2017, 5:26am UTC](https://discuss.elastic.co/t/kibana-logfile-rotation-or-logfile-rolling-appender/93610/3 "2017-07-20T05:26:04Z")

</div>

**Thanks Tim..** for the response..  
I will look around for other alternative on this.

---

<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:** [August 17, 2017, 5:26am UTC](https://discuss.elastic.co/t/kibana-logfile-rotation-or-logfile-rolling-appender/93610/4 "2017-08-17T05:26:13Z")

</div>

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