[Kea-users] Logging discover/offer/request/ack packets like ISC server

Oscar Carlsson oscar at prutt.party
Mon Mar 7 10:32:21 UTC 2022


Kenneth Porter <shiva at sewingwitch.com> writes:

> I'd like to log the packets exchanged by my clients on my small 
> LAN,
> as I do with the old ISC server. Is there a simple logging 
> config that
> will do this? I don't see that in any of the example configs for
> kea4. I did try boosting the log level to DEBUG but that only 
> gives me
> an ADVERT/ALLOC sequence, not the usual 
> DISCOVER/OFFER/REQUEST/ACK
> sequence.

Hi,

The documentation gives a few exmaples in the section about 
logging:

https://kea.readthedocs.io/en/kea-2.0.2-doc/arm/logging.html

There's not just _one_ log you can tune to DEBUG, but multiple. 
I've
found that it's not just enough to set the parent logger to DEBUG, 
but
to set all the interesting logger names to the relevant logging 
level.

Good luck!


Oscar

PS. Make sure to test your configuration changes with the builtin
tester: kea-dhcp4 -t path/to/config


More information about the Kea-users mailing list