From owner-freebsd-questions Wed Feb 14 10:26: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 6C0DB37B491 for ; Wed, 14 Feb 2001 10:26:03 -0800 (PST) Received: from rfx-216-196-73-168.users.reflexcom.com ([216.196.73.168]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 14 Feb 2001 10:24:07 -0800 Received: (from cjc@localhost) by rfx-216-196-73-168.users.reflexcom.com (8.11.1/8.11.1) id f1EIQ0b62415; Wed, 14 Feb 2001 10:26:00 -0800 (PST) (envelope-from cjc) Date: Wed, 14 Feb 2001 10:25:59 -0800 From: "Crist J. Clark" To: G-der Cc: freebsd-questions@FreeBSD.ORG Subject: Re: syslog.conf - duplicate entries in logs Message-ID: <20010214102559.A62304@rfx-216-196-73-168.users.reflex> Reply-To: cjclark@alum.mit.edu References: <20010212202638.A52861@gder.net> <20010212225510.L62368@rfx-216-196-73-168.users.reflex> <20010214103150.A88146@gder.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010214103150.A88146@gder.net>; from gder@gder.net on Wed, Feb 14, 2001 at 10:31:50AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Feb 14, 2001 at 10:31:50AM -0700, G-der wrote: > On Mon, Feb 12, 2001 at 10:55:10PM -0800, Crist J. Clark wrote: > > > > *.notice;kern.debug;lpr.info;mail.crit;news.err;daemon.warning /var/log/messages > > Great, this seems to have worked like a charm. I was worried that the *.notice would > have a higher priority than the daemon.warning (aka I would continue to receive > daemon.notice messages) but that is apparently not the case. > > The man page is right: > > "The effects of multiple selectors are sometimes not intuitive." > > But thanks for the help - it looks like it's working the way I want it. The syslog.conf(8) manpage also says, "Multiple selectors may be specified for a single action by separating them with semicolon (``;'') characters. It is important to note, howev- er, that each selector can modify the ones preceding it." Which establishes the precedence for an action. Later selectors overrule the previous ones. Have a look again how the default line works. The 'mail' and 'news' entries on the default are doing the same thing you wanted to do with 'daemon,' rasing the reporting level from 'notice.' -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message