From owner-freebsd-arch Thu Feb 13 9:45:37 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B09637B401; Thu, 13 Feb 2003 09:45:35 -0800 (PST) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7034B43F85; Thu, 13 Feb 2003 09:45:34 -0800 (PST) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch01.lj.gnf.org [172.25.10.19]) by ns1.gnf.org (8.12.3/8.12.3) with ESMTP id h1DHjXMf095824; Thu, 13 Feb 2003 09:45:33 -0800 (PST) (envelope-from gtetlow@gnf.org) Received: from roark.gnf.org ([172.25.24.15]) by EXCHCLUSTER01.lj.gnf.org with Microsoft SMTPSVC(5.0.2195.5329); Thu, 13 Feb 2003 09:45:34 -0800 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.6/8.12.6) with ESMTP id h1DHjXGj027812; Thu, 13 Feb 2003 09:45:33 -0800 (PST) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.6/8.12.6/Submit) id h1DHjV7k027811; Thu, 13 Feb 2003 09:45:31 -0800 (PST) Date: Thu, 13 Feb 2003 09:45:31 -0800 From: Gordon Tetlow To: Thomas Quinot Cc: Wesley Peters , arch@FreeBSD.ORG Subject: Re: syslog.conf syntax change (multiple program/host specifications) Message-ID: <20030213174531.GZ83215@roark.gnf.org> References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302111430.03156.wes@softweyr.com> <20030213001845.GA85036@melusine.cuivre.fr.eu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="95n2dZZDVPvlnkUw" Content-Disposition: inline In-Reply-To: <20030213001845.GA85036@melusine.cuivre.fr.eu.org> User-Agent: Mutt/1.4i X-OriginalArrivalTime: 13 Feb 2003 17:45:34.0101 (UTC) FILETIME=[B5A01C50:01C2D387] Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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