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

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



On Fri, 2009-10-02 at 18:08 +0200, Daniel Veillard wrote:
>   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.
...
> 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

Yep, I was starting to find daily rollover annoying. Weekly is much more
sensible.

ACK

Cheers,
Mark.


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