Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2001 10:15:47 -0400
From:      Michael Lucas <mwlucas@blackhelicopters.org>
To:        Matthew Emmerton <matt@gsicomp.on.ca>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: thoughts on /etc/newsyslog.conf
Message-ID:  <20010419101547.B48300@blackhelicopters.org>
In-Reply-To: <003a01c0c876$52242310$1200a8c0@gsicomp.on.ca>; from matt@gsicomp.on.ca on Wed, Apr 18, 2001 at 10:13:26PM -0400
References:  <20010418215610.A46691@blackhelicopters.org> <003a01c0c876$52242310$1200a8c0@gsicomp.on.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 18, 2001 at 10:13:26PM -0400, Matthew Emmerton wrote:
> You need ISO8601 to support rolling on fixed dates (1st of the month, etc.)
> 
> You need 'W-D-M' format to support rolling on a weekly/monthly/daily basis.
> This can't be done using ISO8601 because ISO uses fixed dates. (How would
> you specify rotating every monday using ISO8601, when the date of every
> monday changes from month to month and year to year?)

What I'm suggesting is the default newsyslog.conf use WDM everywhere,
instead of being half WDM and half ISO8601.  Or is there something you
can do with ISO8601 that you can't do with WDM?  This would make
things more clear for the new administrator.

If the answer is "because we've always done it this way", then I'll
document it as such.  :)

--- newsyslog.conf-dist	Thu Apr 19 10:10:11 2001
+++ newsyslog.conf	Thu Apr 19 10:11:33 2001
@@ -6,15 +6,15 @@
 /var/log/amd.log			644  7	   100  *     Z
 /var/log/kerberos.log			644  7	   100  *     Z
 /var/log/lpd-errs			644  7	   100  *     Z
-/var/log/maillog			644  7     *    @T00  Z
+/var/log/maillog			644  7     *    $H0   Z
 /var/log/sendmail.st			644  10    *    168   B
 /var/log/messages			644  5	   100  *     Z
-/var/log/all.log			600  7     *    @T00  Z
+/var/log/all.log			600  7     *    $H0   Z
 /var/log/slip.log			600  3	   100  *     Z
 /var/log/ppp.log			600  3	   100	*     Z
 /var/log/security			600  10    100  *     Z
-/var/log/wtmp				644  3	   *	@01T05 B
-/var/log/daily.log			640  7	   *	@T00  Z
+/var/log/wtmp				644  3	   *	$M1H5 B
+/var/log/daily.log			640  7	   *	$H0   Z
 /var/log/weekly.log			640  5	   1	$W6D0 Z
 /var/log/monthly.log			640  12	   *	$M1D0 Z
 /var/log/console.log			640  5     100	*     Z


The sendmail.st rotation also seems odd: why rotate once a week at
some (essentially) randomly chosen time, rather than once a week at a
set time like the rest of the logs?  But that's a separate issue.

==ml

-- 
Michael Lucas
mwlucas@blackhelicopters.org
http://www.blackhelicopters.org/~mwlucas/
Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010419101547.B48300>