# Kibana logs maximum size

**URL:** <https://discuss.elastic.co/t/kibana-logs-maximum-size/205736>\
**Category:** Kibana\
**Created:** [October 29, 2019, 6:15pm UTC](https://discuss.elastic.co/t/kibana-logs-maximum-size/205736 "2019-10-29T18:15:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akash.gund](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@akash.gund](https://discuss.elastic.co/u/akash.gund)\
**Post date:** [October 29, 2019, 6:15pm UTC](https://discuss.elastic.co/t/kibana-logs-maximum-size/205736/1 "2019-10-29T18:15:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [October 29, 2019, 6:28pm UTC](https://discuss.elastic.co/t/kibana-logs-maximum-size/205736/2 "2019-10-29T18:28:55Z")

</div>

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.

---

<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:** [November 26, 2019, 6:31pm UTC](https://discuss.elastic.co/t/kibana-logs-maximum-size/205736/3 "2019-11-26T18:31:37Z")

</div>

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