Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2011 09:34:39 +0100
From:      n j <nino80@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: IPFilter and IPMon logging to syslog
Message-ID:  <AANLkTi=Eg-Lmcfd-P=XfrhB0X47mwp=G7JmuP3Lxbmna@mail.gmail.com>
In-Reply-To: <3787f7ba69db4e2b72443f513f3f148e@www.dweimer.net>
References:  <3787f7ba69db4e2b72443f513f3f148e@www.dweimer.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 1, 2011 at 8:38 PM, Dean E. Weimer <dweimer@dweimer.net> wrote:
> I have been doing some work with cleaning up my log files to make them
> easier to read, and for the life of me can't figure out how to get my
> IPFilter logs to stop going into the /var/log/messages log. =A0I have a s=
yslog
> entry for local0.* /var/log/ipfilter.log which works great, and captures =
all
> the logs I want. =A0I have tried adding local0.none on the /var/log/messa=
ges
> line, but it seems to have no effect. =A0Can anyone tell me what I am doi=
ng
> wrong here, the below lines are from my syslog.conf configuration file.
>
> *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;local0.none
> =A0 =A0 /var/log/messages
> local0.* =A0 =A0 =A0 /var/log/ipfilter.log

I usually do it this way:

!-local0 # disable logging of local0
[log whatever] /var/log/messages

!local0 # enable logging of local0
local0.* /var/log/ipfilter.log

Regards,
--=20
Nino



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=Eg-Lmcfd-P=XfrhB0X47mwp=G7JmuP3Lxbmna>