<div dir="ltr">Hi<div>Thanks, with those two options it indeed started logging on all entries. Still finds it a bit strange that it does not do this automatically. I have double checked with tcpdump and all requests includes option82 information, regardless if the request is broadcast (via relay) or unicast directly to the server.</div><div><br></div><div>/Anders</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 8 Jul 2026 at 22:11, Darren Ankney <<a href="mailto:darren.ankney@gmail.com">darren.ankney@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Anders,<br>
<br>
This is most likely because the client is renewing directly to the<br>
DHCP server. You can force Kea to retain the relay-agent information<br>
option data using '"stash-agent-options": true' (see here:<br>
<a href="https://kea.readthedocs.io/en/kea-3.2.0/arm/dhcp4-srv.html#stash-agent-options" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/kea-3.2.0/arm/dhcp4-srv.html#stash-agent-options</a>).<br>
This should make the cid and rid available during the REQUEST. Note<br>
that '"store-extended-info": true,' is required to make the former<br>
work (see: <a href="https://kea.readthedocs.io/en/kea-3.2.0/arm/dhcp4-srv.html#storing-extended-lease-information" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/kea-3.2.0/arm/dhcp4-srv.html#storing-extended-lease-information</a>).<br>
<br>
Thank you,<br>
Darren Ankney<br>
<br>
On Wed, Jul 8, 2026 at 3:47 PM Anders Rosendal <<a href="mailto:anders@rosendal.nu" target="_blank">anders@rosendal.nu</a>> wrote:<br>
><br>
> Hi<br>
> 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.<br>
> I have enabled the libdhcp_legal_log-hook with the most basic configuration:<br>
><br>
> {<br>
> "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_legal_log.so",<br>
> "parameters": {<br>
> "base-name": "kea-legal4",<br>
> }<br>
> }<br>
><br>
> 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.<br>
><br>
> How do I get it to log all parameters on all request/ack events?<br>
><br>
> 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 <a href="http://as100.mjole.com/0/0/0/0/0" rel="noreferrer" target="_blank">as100.mjole.com/0/0/0/0/0</a>) and remote-id: 61:73:31:30:30:2e:6d:6a:6f:6c:65:2e:63:6f:6d (<a href="http://as100.mjole.com" rel="noreferrer" target="_blank">as100.mjole.com</a>)<br>
> 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<br>
> 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<br>
><br>
> /Anders R<br>
> --<br>
> ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
><br>
> To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
> <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users.Kea-users@lists.isc.org" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users.<br>
Kea-users@lists.isc.org</a><br>
</blockquote></div>