Darryl L. Pierce
2009-May-27 14:58 UTC
[Ovirt-devel] [PATCH node] Compress all rotated logs.
Removes the delaycompress line so that every rotation is compressed. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- logrotate/ovirt-logrotate.conf | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/logrotate/ovirt-logrotate.conf b/logrotate/ovirt-logrotate.conf index 8747f59..8b89a2d 100644 --- a/logrotate/ovirt-logrotate.conf +++ b/logrotate/ovirt-logrotate.conf @@ -1,7 +1,6 @@ -/var/log/ovirt*.log { +/var/log/*log { rotate 3 compress - delaycompress missingok size 1M create -- 1.6.0.6
On 05/27/2009 10:58 AM, Darryl L. Pierce wrote:> Removes the delaycompress line so that every rotation is compressed. > > Signed-off-by: Darryl L. Pierce<dpierce at redhat.com> > --- > logrotate/ovirt-logrotate.conf | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/logrotate/ovirt-logrotate.conf b/logrotate/ovirt-logrotate.conf > index 8747f59..8b89a2d 100644 > --- a/logrotate/ovirt-logrotate.conf > +++ b/logrotate/ovirt-logrotate.conf > @@ -1,7 +1,6 @@ > -/var/log/ovirt*.log { > +/var/log/*log { > rotate 3 > compress > - delaycompress > missingok > size 1M > createWouldn't it be better to set the global compress option rather than removing delaycompress? i.e. /etc/logrotate.conf> see "man logrotate" for details > # rotate log files weekly > weekly > > # keep 4 weeks worth of backlogs > rotate 4 > > # create new (empty) log files after rotating old ones > create > > # use date as a suffix of the rotated file > dateext > > # uncomment this if you want your log files compressed > #compressPerry