From owner-freebsd-hackers Wed Apr 18 19:17:21 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id 5270D37B423 for ; Wed, 18 Apr 2001 19:17:18 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.3) with SMTP id f3J2F3p19734; Wed, 18 Apr 2001 22:15:03 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <003a01c0c876$52242310$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Michael Lucas" , References: <20010418215610.A46691@blackhelicopters.org> Subject: Re: thoughts on /etc/newsyslog.conf Date: Wed, 18 Apr 2001 22:13:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello, > > In writing an article on syslogd and newsyslog, I've noticed something > intensely annoying about newsyslog.conf. > > FreeBSD supports three different formats for dates in newsyslog.conf: > raw hours since last rotation, ISO 8601, and FreeBSD-specific > week-day-month. > > Wouldn't it make sense to standardize on one or the other of ISO8601 > or W-D-M for the default newsyslog.conf? You need 'raw hours' format to support relative times, commonly used with size parameters to control the growth of web logs. (ie "Rotate when size > 10M or 6 hours from last rotate") 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?) As a point of reference, cron's time/date parameters are functionally a combination of W-D-M and ISO8601. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message