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.
as part of an effort around this, lets try to align with ES behaviour for log rotation
Linking related PR: https://github.com/elastic/kibana/pull/12852
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 馃憤
馃嵕 馃巻 馃帀