Wednesday, January 25, 2023

Re: syslogd program logging

On 1/24/2023 11:13 PM, Alexis wrote:
>
> 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.

Ah, I see now. I was just going from the example in syslog.conf, but
this points me in the right direction. Thanks!

No comments:

Post a Comment