System Administration Guide, Volume 3

How to Log DHCP Transactions to a Separate Syslog File

  1. Become superuser on the DHCP server system.

  2. Edit the /etc/syslog.conf file on the server system and add a line having the following format:


    localn.notice                  path-to-logfile
    

    where n is the syslog facility number you specified for transaction logging, and path-to-logfile is the complete path to the file to use for logging transactions.

    For example, you might add the following line:


    local0.notice              /var/log/dhcpsrvc

    See syslog.conf(4) man page for more information about the syslog.conf file.