From owner-freebsd-arch Wed Feb 12 20:46:57 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 A11B437B401; Wed, 12 Feb 2003 20:46:56 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1415D43F93; Wed, 12 Feb 2003 20:46:52 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.homeunix.net (66-75-151-22.san.rr.com [66.75.151.22]) by smtp-relay.omnis.com (Postfix) with ESMTP id 854E242F44; Wed, 12 Feb 2003 20:46:52 -0800 (PST) From: Wes Peters Organization: Softweyr To: Thomas Quinot Subject: Re: syslog.conf syntax change (multiple program/host specifications) Date: Thu, 13 Feb 2003 04:46:50 +0000 User-Agent: KMail/1.5 Cc: Thomas Quinot , arch@freebsd.org References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302111430.03156.wes@softweyr.com> <20030213001845.GA85036@melusine.cuivre.fr.eu.org> In-Reply-To: <20030213001845.GA85036@melusine.cuivre.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200302130446.50943.wes@softweyr.com> 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 On Thursday 13 February 2003 00:18, Thomas Quinot wrote: > Le 2003-02-11, Wesley Peters =E9crivait : > > 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 > > 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). > > Eg: > local3.* |/usr/local/sbin/loglimit /var/log/foo B 1K > > Where loglimit would copy stdin to the named file, rotating it when > appropriate. Now that's an innovative solution to the problem. It has the over- head of an additional process for every log file you want to limit, but it is certainly worthy of consideration. Thank you. =2D-=20 Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message