Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 01:18:45 +0100
From:      Thomas Quinot <thomas@FreeBSD.ORG>
To:        Wesley Peters <wes@softweyr.com>
Cc:        Thomas Quinot <thomas@freebsd.org>, arch@freebsd.org
Subject:   Re: syslog.conf syntax change (multiple program/host specifications)
Message-ID:  <20030213001845.GA85036@melusine.cuivre.fr.eu.org>
In-Reply-To: <200302111430.03156.wes@softweyr.com>
References:  <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302111430.03156.wes@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Le 2003-02-11, Wesley Peters écrivait :

> 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.

Thomas.

-- 
    Thomas.Quinot@Cuivre.FR.EU.ORG

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?20030213001845.GA85036>