Make ISC DHCP more verbose

Glenn Satchell Glenn.Satchell at uniq.com.au
Mon Sep 17 14:26:21 UTC 2007


Not sure about configuring syslog-ng, but with standard syslog I do this:

dhcpd.conf:

log-facility local7;

/etc/syslog.conf:

# DHCP
local7.debug     /var/log/dhcp/dhcpd.log

touch the file, then send a kil -hup to syslog's pid to reread the file.

Sample messages on a very quiet system:

Sep 16 22:35:57 drill dhcpd: [ID 702911 local7.info] DHCPDISCOVER from 
00:16:ce:54:4e:f3 via hme0
Sep 16 22:35:58 drill dhcpd: [ID 702911 local7.info] DHCPOFFER on 192.168.14.240 
to 00:16:ce:54:4e:f3 via hme0
Sep 16 22:35:59 drill dhcpd: [ID 702911 local7.info] DHCPREQUEST for 
192.168.14.240 (192.168.1
4.28) from 00:16:ce:54:4e:f3 via hme0
Sep 16 22:35:59 drill dhcpd: [ID 702911 local7.info] DHCPACK on 192.168.14.240 
to 00:16:ce:54:4e:f3 via hme0
Sep 16 22:56:18 drill dhcpd: [ID 702911 local7.info] Wrote 0 deleted host decls 
to leases file.
Sep 16 22:56:18 drill dhcpd: [ID 702911 local7.info] Wrote 0 new dynamic host 
decls to leases file.
Sep 16 22:56:18 drill dhcpd: [ID 702911 local7.info] Wrote 15 leases to leases 
file.
Sep 16 22:56:18 drill dhcpd: [ID 702911 local7.info] DHCPRELEASE of 
192.168.14.240 from 00:16:ce:54:4e:f3 via hme0 (found)
Sep 16 23:27:56 drill dhcpd: [ID 702911 local7.info] balancing pool ef998 
192.168.14/24  total 15  free 8  backup 7  lts 0  max-own (+/-)2

regards,
-glenn

>Date: Mon, 17 Sep 2007 16:04:06 +0200
>From: "Thomas Marteau" <thomas.marteau at gmail.com>
>
>Hi all,
>
>It must be something very stupid but I follow the doc you can find online
>and I get nothing but the start message of dhcpd in my log file.
>I changed the log-facility, I made my own filter in syslog-ng configuration
>and I can't see any transaction logged.
>
>FYI, I filter only the log facility and not the level. I try with logger and
>the weakest level is logged into my file.
>
>So any help will be wellcome to get log like at
>http://web.suffieldacademy.org/ils/netadmin/docs/software/dhcp/#toc8
>
>-- 
>Thanks in advance, Thomas.


More information about the dhcp-users mailing list