Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2003 17:33:29 -0800
From:      Wes Peters <wes@softweyr.com>
To:        Garance A Drosihn <drosih@rpi.edu>, Thomas Quinot <thomas@FreeBSD.ORG>, Gordon Tetlow <gordont@gnf.org>
Cc:        Thomas Quinot <thomas@FreeBSD.ORG>, arch@FreeBSD.ORG
Subject:   Re: syslog.conf syntax change (multiple program/host specifications)
Message-ID:  <200302141733.29304.wes@softweyr.com>
In-Reply-To: <p05200f15ba72fb31e177@[128.113.24.47]>
References:  <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302141100.23529.wes@softweyr.com> <p05200f15ba72fb31e177@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 14 February 2003 12:17, Garance A Drosihn wrote:
>
> I would not replace the historic syntax, but I would like to see
> something "more readable" for the new options.  Instead of cool
> 1-letter codes, I think we could go with something a bit more
> descriptive.

OK, I'm cool with this.

> Something like 'max=256m', 'rotate=newsyslog' and 'rotate=rm'.
> Or I guess it should be something like 'rotate=trunc', so you
> don't have to deal with permissions on a newly-created log file.

Keywords are easier to parse than name=value pairs in this case.
How 'bout:

lpr.info		/var/log/lpd-errs	256K
local3.*		/var/log/foo		new 1K
ftp.*			/var/log/ftp		bzip 1M
cron.*			/var/log/cron		rm

> I'd also suggest that newsyslog be run with some (new?) option
> that says "rotate this file, even if you don't think it needs
> to be rotated". 

newsyslog doesn't really seen to have this feature; -F just truncates
the file.  I'll look into a proper "force" flag for newsyslog.

> I'd expect newsyslog to know *how* to do the
> rotation in this case (bzip, gzip, or alternate file-naming
> conventions, and permissions on the newly-created log file).

What should it do if told to newsyslog a file it is not configured
to handle?

-- 
         "Where am I, and what am I doing in this handbasket?"

Wes Peters                                                   Softweyr LLC
wes@softweyr.com                                     http://softweyr.com/



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




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