Kibana logs maximum size

We are using kibana in our elasticsearch stack.
We would like to limit the stdout.log size, but cant find any options for doing this in kibana.yml
Can someone guide as to how this can be done?

On Centos, I let kibana default log to syslog, created /etc/rsyslog.d/kibana.conf

if $programname == 'kibana' then {
      /var/log/kibana.log;
      stop}

and /etc/logrotate.d/kibana

/var/log/kibana.log
{
    missingok
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}

That gives weekly log rotation by default and the power of logrotate to do whatever you want.

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