From owner-freebsd-questions@FreeBSD.ORG Wed Mar 17 16:57:11 2004 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 DA93816A4CE for ; Wed, 17 Mar 2004 16:57:11 -0800 (PST) Received: from zoot.lafn.org (zoot.lafn.ORG [206.117.18.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id A332443D2F for ; Wed, 17 Mar 2004 16:57:11 -0800 (PST) (envelope-from bc979@lafn.org) Received: from [10.0.1.90] (host-66-81-196-123.rev.o1.com [66.81.196.123]) (authenticated bits=0) by zoot.lafn.org (8.12.3p3/8.12.3) with ESMTP id i2I0v7mL053729 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Wed, 17 Mar 2004 16:57:09 -0800 (PST) (envelope-from bc979@lafn.org) Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <20040305121659.A26F143D3F@mx1.FreeBSD.org> References: <20040305121659.A26F143D3F@mx1.FreeBSD.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2D4DF92E-7877-11D8-B05A-000393681B06@lafn.org> Content-Transfer-Encoding: 7bit From: Doug Hardie Date: Wed, 17 Mar 2004 16:57:06 -0800 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.613) X-Virus-Scanned: ClamAV version 'clamd / ClamAV version devel-20040209', clamav-milter version '0.66m' Subject: Syslog 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: Thu, 18 Mar 2004 00:57:12 -0000 FreeBSD 4.6. I have a server running that logs to syslog for recording interesting information. It uses LOG_DAEMON facility so give the standard syslog.conf entries of: *.err;kern.debug;auth.notice;mail.crit /dev/console *.notice;kern.debug;lpr.info;mail.crit;news.err /var/log/messages all of those records go to both console and messages in addition to the desire file specified with a ! statement. Is there a way to modify the statements above such that log entries from the specified program are not sent to console or messages? I couldn't find anything in the man pages on this. I had thought I could add a "!prog" after mail.crit in the first entry to do that, but it appears that my memory is corrupt.