Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 04:46:50 +0000
From:      Wes Peters <wes@softweyr.com>
To:        Thomas Quinot <thomas@FreeBSD.ORG>
Cc:        Thomas Quinot <thomas@freebsd.org>, arch@freebsd.org
Subject:   Re: syslog.conf syntax change (multiple program/host specifications)
Message-ID:  <200302130446.50943.wes@softweyr.com>
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
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




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