]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: logrotate: drop minsize directive
authorJim Fehlig <jfehlig@suse.com>
Wed, 25 Oct 2017 21:09:20 +0000 (15:09 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 26 Oct 2017 17:00:07 +0000 (11:00 -0600)
commit6c43149c41dfd59465ffc82d8613b3b31a0971fc
tree7455a91fabd3d0ed598088d08efba17bde40ccfd
parentd4d50bcc799cd3790004ed70c7fe63ec584a2456
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 <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
daemon/libvirtd.qemu.logrotate.in