Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2003 11:06:31 -0700
From:      Sean Chittenden <sean@chittenden.org>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        questions@freebsd.org
Subject:   Re: Logging all messages but mail via syslog...
Message-ID:  <20030428180631.GB28198@perrin.int.nxad.com>
In-Reply-To: <20030428180022.GP22259@dan.emsphone.com>
References:  <20030428174606.GA28198@perrin.int.nxad.com> <20030428180022.GP22259@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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. 

FABULOUS!!!!!!!  THANK YOU!  I think I may add this to the
syslog.conf(5) examples as this is most useful.  -sc

-- 
Sean Chittenden



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