Steven Shockley <steve.shockley@shockley.net> writes:
> My isc_dhcpd logs are kind of chatty, and I'd like to send them
> to
> their own log. I tried appending the following to syslogd.conf:
>
> !dhcpd
> *.*
> /var/log/dhcpd
>
> This works, but the dhcpd messages still appear in
> /var/log/daemon as
> well.
Shouldn't this actually be:
!!dhcpd
*.* /var/log/dhcpd
!*
at the start of the file? At least, that's my reading of
syslog.conf(5): the two exclamation marks will cause a match on
'dhcpd' to _only_ result in the listed action (with no further
evaluation of the file, and thus no further opportunities for
logging to be done), and the '!*' means that further evaluation
will happen if there _isn't_ such a match.
Alexis.
No comments:
Post a Comment