Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Oct 2007 10:24:22 -0400
From:      Jeff Royle <lists@qwirky.net>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Cc:        Stephen Allen <sdafreebsduk@rowyerboat.com>
Subject:   Re: /var/log/messages filling up with DHCPDISCOVER messages
Message-ID:  <470A3D96.3000904@qwirky.net>
In-Reply-To: <47096FD7.4000309@rowyerboat.com>
References:  <47096FD7.4000309@rowyerboat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Stephen Allen wrote:
> /usr/local/etc/dhcpd.conf is configured with
> 
>      "log-facility local7;"
> 
> and /etc/syslog.conf is also configured with
> 
>      "local7.*  /var/log/dhcpd.log"
> 
> However, /var/log/messages is filling up with "DHCPDISCOVER / no free
> leases" messages for those clients that are unknown to the DHCP server
> (eg. on a different subnet).  I suspect that these messages are being
> caught by "*.notice" which is why they end up in /var/log/messages.
> 
> Is there a way to prevent this happening?

You could try filtering them out of syslog like so (in your syslogd.conf):

"local7.!=notice  /var/log/dhcpd.log"

Which should log everything for local7 except notice. See man syslog.conf(5)

Cheers,

Jeff Royle
lists dot qwirky dot net



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