# Disk full overwrite

**URL:** <https://discuss.elastic.co/t/disk-full-overwrite/171032>\
**Category:** Kibana\
**Created:** [March 6, 2019, 6:37am UTC](https://discuss.elastic.co/t/disk-full-overwrite/171032 "2019-03-06T06:37:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abed\_Bishara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abed_bishara/32/41603_2.png) [@Abed\_Bishara](https://discuss.elastic.co/u/Abed_Bishara)\
**Post date:** [March 6, 2019, 6:37am UTC](https://discuss.elastic.co/t/disk-full-overwrite/171032/1 "2019-03-06T06:37:56Z")

</div>

Hello everyone

I have a question regarding the behavior of Kibana in a situation where the disk is full

We've separated the logs to be on another disk :

root@brkibana:~# df -hT  
Filesystem Type Size Used Avail Use% Mounted on  
udev devtmpfs 3.9G 0 3.9G 0% /dev  
tmpfs tmpfs 798M 81M 718M 11% /run  
/dev/mapper/brkibana--vg-root ext4 25G 9.2G 14G 40% /  
tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm  
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock  
tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup  
**/dev/sdb1 ext4 115G 108G 1.3G 99% /logs**  
/dev/sda1 ext2 472M 58M 390M 13% /boot  
tmpfs tmpfs 798M 0 798M 0% /run/user/0

And as you see , the log disk is almost full  
Will it overwrite old data by default ? if not , is it possible to configure if the disk is on 90% usage then overwrite old data ?

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [March 6, 2019, 4:00pm UTC](https://discuss.elastic.co/t/disk-full-overwrite/171032/2 "2019-03-06T16:00:20Z")

</div>

Hello Abed,

It sounds like you're looking for a log rotation utility. It doesn't appear we have anything that handles this natively, but there are some third-part utilities which could help. See this thread for reference:

> [@Kibana Log Rotation](https://discuss.elastic.co/t/kibana-log-rotation/139764):
>
> I have set logging.destin kibana.yml, but the log file grows rapidly to the point where in just a few weeks some text editors (e.g. Notepad++) can't open the file because its so big. Is there a way to rotate the log file so that, say, each day the log file name is changed?

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![Abed\_Bishara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abed_bishara/32/41603_2.png) [@Abed\_Bishara](https://discuss.elastic.co/u/Abed_Bishara)\
**Post date:** [March 24, 2019, 9:12am UTC](https://discuss.elastic.co/t/disk-full-overwrite/171032/3 "2019-03-24T09:12:08Z")

</div>

Hi Aaron

Thanks  
But does the Kibana overwrite old logs when disk is full automatically ?

---

<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:** [April 21, 2019, 9:12am UTC](https://discuss.elastic.co/t/disk-full-overwrite/171032/4 "2019-04-21T09:12:10Z")

</div>

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