# Kibana logs is full

**URL:** <https://discuss.elastic.co/t/kibana-logs-is-full/307903>\
**Category:** Kibana\
**Created:** [June 22, 2022, 4:50pm UTC](https://discuss.elastic.co/t/kibana-logs-is-full/307903 "2022-06-22T16:50:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptang](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@ptang](https://discuss.elastic.co/u/ptang)\
**Post date:** [June 22, 2022, 4:50pm UTC](https://discuss.elastic.co/t/kibana-logs-is-full/307903/1 "2022-06-22T16:50:48Z")

</div>

can anyone help me how to cleanup the kibana.log files under /var/log/kibana directory. kibana.log filled my diskspace and no space to write the logs.

Thanks,  
pradeep

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 5, 2022, 10:47pm UTC](https://discuss.elastic.co/t/kibana-logs-is-full/307903/2 "2022-07-05T22:47:27Z")

</div>

> [@ptang](#):
>
> under /var/log/kibana

```auto
cat /dev/null > kibana.log

```

This will empty the file if you are on a system that supports cat. For example if you have filebeat logs -this is how you can delete your old logs

```auto
curl -XDELETE 'localhost:9200/filebeat-2022*?pretty'

```

---

<div class="post-metadata">

**Author:** ![ptang](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@ptang](https://discuss.elastic.co/u/ptang)\
**Post date:** [July 7, 2022, 2:47pm UTC](https://discuss.elastic.co/t/kibana-logs-is-full/307903/3 "2022-07-07T14:47:23Z")

</div>

thanks. It worked. Just want to make sure its safe to delete the log.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [July 7, 2022, 2:55pm UTC](https://discuss.elastic.co/t/kibana-logs-is-full/307903/4 "2022-07-07T14:55:47Z")

</div>

better to setup something in logrotate which can take care rotating this log.

create a file /etc/logrotate.d/kibana and add following

```auto
/var/log/kibana/kibana.log {
missingok
weekly
rotate 4
compress
create 644 root root
}

```

this will rotate your kibana log once a week and keep four such log. rest will get deleted.

---

<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:** [August 4, 2022, 2:56pm UTC](https://discuss.elastic.co/t/kibana-logs-is-full/307903/5 "2022-08-04T14:56:30Z")

</div>

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