Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jun 2003 00:04:04 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Syslog question
Message-ID:  <20030625230404.GC47089@users.munk.nu>
In-Reply-To: <000501c33b25$090e0b90$ca0110ac@vinyl.tkvbp.com>
References:  <000501c33b25$090e0b90$ca0110ac@vinyl.tkvbp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 25, 2003 at 10:21:11AM -0400, Kliment Andreev wrote:
> I have the following in /etc/syslog.conf. Notice lines (1) and (3).
> I want to log news.notice ONLY in /var/log/news/news.notice but instead of
> that I have the same output both in /var/log/news/news.notice and
> /var/log/messages. If I remove *.notice from line (3) I am afraid that I
> would not log any other *.notice messages.
> 
> (1) news.notice
> /var/log/news/news.notice
> *.err;kern.debug;auth.notice;mail.crit          /dev/console
> (3) *.notice;kern.debug;lpr.info;mail.crit          /var/log/messages
Try:
*.notice;news.none;kern.debug;lpr.info;mail.crit          /var/log/messages

which should stop any news facility logging to /var/log/messages iirc.



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