DHCP log different location but warnings in syslog
- Date: Wed, 12 Dec 2018 12:52:58 +0000
- From: Bonno Bloksma <b.bloksma@xxxxxx>
- Subject: DHCP log different location but warnings in syslog
Plenty of examples on-line how to move logging from the isc-dhcp-server to a different file using something like
in the dhcp.conf file and then in my syslog.conf:
What I really want is all the regular DHCP log stuff in a file /var/log/dhcp/dhcpd.log but.. I want errors like "no free leases" etc in my syslog
Currently my monitoring tool is complaining there are way too many updates to the syslog file and it has trouble keeping up because currently all my DHCP servers log to the syslog file.;-)
I want my monitor tool to keep reading the syslog file and analyze it for critical stuff like the "no free leases" warning and not have it read thousands of lines each day for regular dhcp lines like DHCPINFORM, DHCPACK, DHCPREQUEST, DHCPOFFER, DHCPNAK, etc.
But of course I do want to have those regular log lines stored somewhere like in a /var/log/dhcp/dhcpd.log file
So, how do I do that?