[libvirt] [PATCH] 526769 change logrotate config default to weekly

Daniel Veillard veillard at redhat.com
Fri Oct 2 16:08:41 UTC 2009


  https://bugzilla.redhat.com/show_bug.cgi?id=526769

  Current setup is daily with 7 backups so one week worth of logs
per domain in /var/log/libvirt/qemu/*.log
  First a week worth of backup is a bit short, second for most domains
the logs are really small, and with 7 backup files this directory gets
crowded quickly.

  This patches changes to weekly, with 4 backups, so always a month
worth of logs, and will nearly cut in half the number of entries in that
directory.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
-------------- next part --------------
diff --git a/daemon/libvirtd.logrotate.in b/daemon/libvirtd.logrotate.in
index 9b42630..cdb399e 100644
--- a/daemon/libvirtd.logrotate.in
+++ b/daemon/libvirtd.logrotate.in
@@ -1,7 +1,7 @@
 @localstatedir@/log/libvirt/qemu/*.log {
-        daily
+        weekly
         missingok
-        rotate 7
+        rotate 4
         compress
         delaycompress
         copytruncate


More information about the libvir-list mailing list