TransWikia.com

dhcp-relay custom log file

Unix & Linux Asked on March 1, 2021

I have
isc-dhcp-relay/xenial-updates,now 4.3.3-5ubuntu12.10 amd64 [installed]

working good, how i can move logging this daemon from syslog to custom log file?

One Answer

You can't. What you can do is make syslog log that to a separate file (see /etc/rsyslog.d/).

  • Create file /etc/rsyslog.d/dhcp-relay.conf
  • Add the line local7.* -/var/log/dhcp-relay.log
  • restart rsyslog

Also look at the file /etc/rsyslog.d/50-default.conf, maybe you want to change the line where it logs to /var/log/syslog to contain local7.none to avoid double loggings.

Answered by stoney on March 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP