From: Jim Fehlig Date: Wed, 25 Oct 2017 21:09:20 +0000 (-0600) Subject: qemu: logrotate: drop minsize directive X-Git-Tag: v3.9.0-rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c43149c41dfd59465ffc82d8613b3b31a0971fc;p=thirdparty%2Flibvirt.git qemu: logrotate: drop minsize directive 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 Reviewed-by: Daniel P. Berrange --- diff --git a/daemon/libvirtd.qemu.logrotate.in b/daemon/libvirtd.qemu.logrotate.in index 15cf019b2b..cdb399ef23 100644 --- a/daemon/libvirtd.qemu.logrotate.in +++ b/daemon/libvirtd.qemu.logrotate.in @@ -5,5 +5,4 @@ compress delaycompress copytruncate - minsize 100k }