[libvirt] [PATCH] qemu: logrotate: drop minsize directive

Jim Fehlig jfehlig at suse.com
Wed Oct 25 21:30:46 UTC 2017


On a cloud host it is possible to create 100's of unique instances
per day, each leaving behind a /var/log/libvirt/qemu/instance-name.log
file that is < 100k. With the current 'minsize 100k' directive, these
files are never rotated and hence never removed. Over months of time,
tens of thousands of these files can accumulate on the host.

Dropping 'minsize 100k' allows rotating small files, which will
increase the number of log files, but 'rotate 4' ensures they will
be removed after a month.

Signed-off-by: Jim Fehlig <jfehlig at suse.com>
---
 daemon/libvirtd.qemu.logrotate.in | 1 -
 1 file changed, 1 deletion(-)

diff --git a/daemon/libvirtd.qemu.logrotate.in b/daemon/libvirtd.qemu.logrotate.in
index 15cf019b2..cdb399ef2 100644
--- a/daemon/libvirtd.qemu.logrotate.in
+++ b/daemon/libvirtd.qemu.logrotate.in
@@ -5,5 +5,4 @@
         compress
         delaycompress
         copytruncate
-        minsize 100k
 }
-- 
2.14.2




More information about the libvir-list mailing list