Kibana: Support for log rotation

Created on 9 Jun 2017  路  9Comments  路  Source: elastic/kibana

Kibana currently does not have out of the box support for log rotation. However, it does support configuration reloading with SIGHUP, so users can use something like logrotate.

Operations enhancement

All 9 comments

as part of an effort around this, lets try to align with ES behaviour for log rotation

Is there an target release where log rotation will be enabled in Kibana? I'm not seeing anything specific in the various discussions about Kibana log rotation. Thanks

@MorrieAtElastic There is no target for this at the moment

The SIGHUP approach seems broken in 6.5.1, kibana keeps writing to the old log file even after sighup. I can see in the log that
I verified that it works with 5.6.12 of kibana.

In 6.5.1, it keeps writing to kibana.log.1 but in 5.6.12 it will write to kibana.log
Tested on Linux and MacOS with same result.

Commands executed.

mv kibana.log kibana.log.1
kill -HUP <pid>

Thanks for the report @jrask, we're tracking this issue here: https://github.com/elastic/kibana/issues/26673

@beiske would something like those options be enough?

#logging.rotate.enable -> controls where we should enable or disable log rotation
#logging.rotate.everyBytes -> number of max bytes on the log file file before rotate it
#logging.rotate.keepFiles -> number of rotated log files to keep

@mistic that sounds good to me 馃憤

馃嵕 馃巻 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

treussart picture treussart  路  3Comments

timroes picture timroes  路  3Comments

timroes picture timroes  路  3Comments

cafuego picture cafuego  路  3Comments

stacey-gammon picture stacey-gammon  路  3Comments