Kibana LogFile Rotation or LogFile Rolling Appender


(Kiran) #1

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.


(Tim Sullivan) #2

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.


(Kiran) #3

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


(system) #4

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