Score:1

How to route isc-dhcp-server logs to their own file

cn flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.