The logging in systemd's journal is getting spammed by logging from dhcpd.
I am running isc-dhcp-server and would like to prevent the log ending up in the journal, and instead go to its own file.
I had a similar issue with apparmor, but that was rectified by installing auditd which reroutes the logs for me.
Is there an equivalent for doing this for dhcpd logs?
OS: Ubuntu 22.04
dhcpd: 4.4.1-2.3ubuntu2.3
UPDATE
What I tried:
Add to /etc/dhcp/dhcpd.conf
log-facility local7;
And add to /etc/rsyslog.d/50-default.conf
local7.* /var/log/dhcpd.log
But all this accomplished was doubling the logging to 2 different destinations. I want the logs to the /var/log/syslog to stop and only log to /var/log/dhcpd.log destination.
systemctl restart rsyslogbut I still get the log entries in both the dhcpd log and the syslog. – Bram Oct 01 '23 at 02:21
– Obit Oct 24 '23 at 00:35*.*;auth,authpriv.none;kern.none;mail.none;cron.none,local7.none -/var/log/syslog