Mailinglist Archive: opensuse (4570 mails)
| < Previous | Next > |
Re: [SLE] How to rotate log file ?
- From: Steve Graegert <graegerts@xxxxxxxxx>
- Date: Thu, 17 Nov 2005 05:06:09 +0000 (UTC)
- Message-id: <6a00c8d50511162106n1ecf3abbv25eca9861e1bba38@xxxxxxxxxxxxxx>
On 11/17/05, Arie Reynaldi Z <reymanx@xxxxxxxxx> wrote:
> Hi All,
>
> I have installae qmail + qmail-scanner, right now my qmail-queue.log
> is getting bigger.. I'm affraid it's gonna get so big like couple of
> megs in a week. How can i run log rotate so it will be like
> qmail-queue.log.tar.gz.1 and so on..
man logrotate gives good examples. For example
compressed
/var/log/qmail.log {
rotate 5
weekly
}
rotates log file /var/log/mail.log on a weekly basis exactly 5 times
before deleting old logs. By default log files are compressed (set
global compressed flag). The compressed files can be distinguished by
date which is part of the file name: qmail.log-20051711.gz.
\Steve
--
Steve Graegert <graegerts@xxxxxxxxx>
Software Consultant {C/C++ && Java && .NET}
Office: +49 9131 7123988
Mobile: +49 1520 9289212
> Hi All,
>
> I have installae qmail + qmail-scanner, right now my qmail-queue.log
> is getting bigger.. I'm affraid it's gonna get so big like couple of
> megs in a week. How can i run log rotate so it will be like
> qmail-queue.log.tar.gz.1 and so on..
man logrotate gives good examples. For example
compressed
/var/log/qmail.log {
rotate 5
weekly
}
rotates log file /var/log/mail.log on a weekly basis exactly 5 times
before deleting old logs. By default log files are compressed (set
global compressed flag). The compressed files can be distinguished by
date which is part of the file name: qmail.log-20051711.gz.
\Steve
--
Steve Graegert <graegerts@xxxxxxxxx>
Software Consultant {C/C++ && Java && .NET}
Office: +49 9131 7123988
Mobile: +49 1520 9289212
| < Previous | Next > |