Date: Thu, 13 Feb 2003 09:45:31 -0800 From: Gordon Tetlow <gordont@gnf.org> To: Thomas Quinot <thomas@FreeBSD.ORG> Cc: Wesley Peters <wes@softweyr.com>, arch@FreeBSD.ORG Subject: Re: syslog.conf syntax change (multiple program/host specifications) Message-ID: <20030213174531.GZ83215@roark.gnf.org> In-Reply-To: <20030213001845.GA85036@melusine.cuivre.fr.eu.org> References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302111430.03156.wes@softweyr.com> <20030213001845.GA85036@melusine.cuivre.fr.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--95n2dZZDVPvlnkUw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 13, 2003 at 01:18:45AM +0100, Thomas Quinot wrote: > Le 2003-02-11, Wesley Peters ?crivait : >=20 > > mail.info /var/log/maillog G 4M > > lpr.info /var/log/lpd-errs 256K > > local3.* /var/log/foo B 1K > > ftp.* /var/log/ftp B 1M >=20 > I think this can be achieved without modifying syslogd. You can achieve > the same effect by using an appropriate program as the log destination > (think Apache's rotatelogs). >=20 > Eg: > local3.* |/usr/local/sbin/loglimit /var/log/foo B 1K >=20 > Where loglimit would copy stdin to the named file, rotating it when > appropriate. I personally like this solution better. Sure you get the overhead of a couple more processes running, but it falls back on each tool doing one specific job. This keeps our syslog.conf consistent with others and it should be relatively easy to implement a log roller (or steal one). -gordon --95n2dZZDVPvlnkUw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+S9m7Ru2t9DV9ZfsRAleSAJ9F4M2qo84fQLGcry3k8h9viAg2gwCeKh5p xrw+qO7E+XXjPZ8OUQ8ZfDE= =qB8r -----END PGP SIGNATURE----- --95n2dZZDVPvlnkUw-- 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?20030213174531.GZ83215>