[Kea-users] legal-log

Anders Rosendal anders at rosendal.nu
Wed Jul 8 19:47:23 UTC 2026


Hi
I'm on my way of migrating from isc-dhcp to isc-kea for a village network
with 400 ftth-consumers, and is now looking at the logging to track which
customer gets which IP.
I have enabled the libdhcp_legal_log-hook with the most basic configuration:

{
                "library":
"/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_legal_log.so",
                "parameters": {
                    "base-name": "kea-legal4",
                 }
}

The problem I have is that only on the initial DISCOVER/REQUEST the server
logs the cid and rid, on subsequent renews it only logs IP, mac and
extended time.

How do I get it to log all parameters on all request/ack events?

2026-07-07 16:11:04 CEST Address: 213.21.95.157 has been assigned for 2 hrs
0 mins 0 secs to a device with hardware address: hwtype=1 00:0a:59:02:0c:39
connected via relay at address: 213.21.95.129, identified by circuit-id:
65:74:68:20:30:2f:30:2f:33:36:3a:31:30:31:2e:30:20:61:73:31:30:30:2e:6d:6a:6f:6c:65:2e:63:6f:6d:2f:30:2f:30:2f:30:2f:30:2f:30
(eth 0/0/36:101.0 as100.mjole.com/0/0/0/0/0) and remote-id:
61:73:31:30:30:2e:6d:6a:6f:6c:65:2e:63:6f:6d (as100.mjole.com)
2026-07-07 17:11:03 CEST Address: 213.21.95.157 has been assigned for 2 hrs
0 mins 0 secs to a device with hardware address: hwtype=1 00:0a:59:02:0c:39
2026-07-07 18:11:03 CEST Address: 213.21.95.157 has been assigned for 2 hrs
0 mins 0 secs to a device with hardware address: hwtype=1 00:0a:59:02:0c:39

/Anders R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20260708/5205e0de/attachment.htm>


More information about the Kea-users mailing list