Re: syslogd program logging

2023-01-25 Thread Steven Shockley

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!




Re: syslogd program logging

2023-01-24 Thread Alexis



Steven Shockley  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.



syslogd program logging

2023-01-24 Thread Steven Shockley
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.

Is there a way to do this where syslogd will send logs from a specific 
program _only_ to the specified log file?  (Other than directly 
configuring a log file in isc_dhcpd.)


Thanks.