From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 11:00:25 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 B284137B401 for ; Mon, 28 Apr 2003 11:00:25 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1192043FAF for ; Mon, 28 Apr 2003 11:00:25 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h3SI0MUO082009; Mon, 28 Apr 2003 13:00:22 -0500 (CDT) (envelope-from dan) Date: Mon, 28 Apr 2003 13:00:22 -0500 From: Dan Nelson To: Sean Chittenden Message-ID: <20030428180022.GP22259@dan.emsphone.com> References: <20030428174606.GA28198@perrin.int.nxad.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030428174606.GA28198@perrin.int.nxad.com> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: questions@freebsd.org Subject: Re: Logging all messages but mail via 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: Mon, 28 Apr 2003 18:00:26 -0000 In the last episode (Apr 28), Sean Chittenden said: > I have a dedicated syslog machine that I use to collect syslog > messages from all over the network. Instead of splitting up the log > files manually, I'd like to have syslog do this for me. Right now I'm > just using a normal *.* collection, but I'd like to filter out mail > from everything else. I've tried every combination of: > > !=mail.* > !=mail > !mail > !mail.* > !-mail > !-mail.* > > With *.* before and after using either ; or , to separate the two. > This has to be possible... but what's the syntax? Is this just a case > of ENOSLEEP and I'm missing it someplace in the man page? -sc Try *.*;mail.none /path/to/logfile "mail" is a facility name, not a program name. -- Dan Nelson dnelson@allantgroup.com