From owner-freebsd-questions@FreeBSD.ORG Wed Jun 25 16:04:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DECF37B401 for ; Wed, 25 Jun 2003 16:04:06 -0700 (PDT) Received: from mail.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EEBD43F93 for ; Wed, 25 Jun 2003 16:04:05 -0700 (PDT) (envelope-from munk@mail.munk.nu) Received: from munk by mail.munk.nu with local (Exim 4.20) id 19VJJ6-000E5m-M4 for freebsd-questions@FreeBSD.ORG; Thu, 26 Jun 2003 00:04:04 +0100 Date: Thu, 26 Jun 2003 00:04:04 +0100 From: Jez Hancock To: freebsd-questions@FreeBSD.ORG Message-ID: <20030625230404.GC47089@users.munk.nu> Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <000501c33b25$090e0b90$ca0110ac@vinyl.tkvbp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c33b25$090e0b90$ca0110ac@vinyl.tkvbp.com> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: Syslog question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2003 23:04:07 -0000 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.