[Kea-users] Including the client-provided hostname in log output

Peter Davies peterd at isc.org
Tue May 12 08:29:18 UTC 2026


Hi Martin,
    At debuglevel 55, the "kea-dhcp4.ddns" logger generates messages:
"DHCP4_CLIENT_HOSTNAME_DATA" and "DHCP4_CLIENT_HOSTNAME_DATA" for 
DHCPOFFERs
and DHCPACKs. Both of these debug messages contain the clients hostname.

You will need to configure the "kea-dhcp4.ddns" logger with severity 
"DEBUG"
and define "debuglevel" to at least 55, as follows:

"loggers": {
         "name": "kea-dhcp4",
         "output_options": [ { "output": "kea-dhcp4.log" } ],
         "severity": "INFO"
},
{
         "name": "kea-dhcp4.ddns",
         "output_options": [ {
         "output": "kea-dhcp4.ddns.log" } ],
         "severity": "DEBUG",
         "debuglevel": 55
}

* The two loggers can be configured to send output to the same file.

/Peter

On 11/05/2026 17.32, martin f krafft via Kea-users wrote:
>
> Hello,
>
> I am new to Kea, so maybe this is a very silly question. However, I 
> could not find out about my question in the logging docs 
> <https://kea.readthedocs.io/en/stable/arm/logging.html>.
>
> DHCP requests can include the client hostname (option 12), e.g.:
>
> |Hostname (12), length 9: "tas-a1t-5" |
>
> Is it possible to echo this in log messages? I am personally better at 
> parsing these names than MAC addresses ;)
>
> Thanks,
>
> -- 
>
> martin krafft | https://matrix.to/#/#madduck:madduck.net
>
> windoze nt crashed.
> i am the blue screen of death.
> no one hears your screams.
>
> spamtraps: madduck.bogus at madduck.net
>
>
-- 
Peter Davies
Support Engineer
Internet Systems Corporation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20260512/11c6eec6/attachment.htm>


More information about the Kea-users mailing list