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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
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
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]