Kea DHCP log /leases question...

Started by Ed V., Today at 02:44:10 AM

Previous topic - Next topic
Part of digging in to the new DDNS options (and my subsequent Github request for a "manual" flag), lead to reviewing logs.

I notice that in the latest 26.1.6 release of Kea, where the WebUI searches for lease information has changed.

It used to be that the "standard" was to send tagged logs ("kea-dhcp4" or "kea-dhcp6") to "syslog".

With the update from 26.1.5 to 26.1.6, the "leases" screens show "No results found", even though the CSV files are present in /var/db/kea.

The built-in ".sample" files now have the log output set as "kea-dhcp4.log" or "kea-dhcp6.log" versus "syslog", so I switched over and restarted the daemons.

Leases were being posted in "syslog" and are now being posted in "kea-dhcp4" or "6" log, but the WebUI still shows "No results found".

Where should the daemons be logging in this release?

Is there a custom location for leases information with the latest update?  If so, where should I post lease data?

Thank you.


Today at 08:19:48 AM #1 Last Edit: Today at 08:22:58 AM by Monviech (Cedrik)
It now uses the unix sockets and hook libraries to collect the leases, so with your manual config you have to add those to dhcpv4 and dhcpv6 config files.

The csv files are not used anymore.

https://github.com/opnsense/core/blob/913863a72e5dc0da1fcbffe2cd562bb6e903a454/src/opnsense/mvc/app/models/OPNsense/Kea/KeaDhcpv4.php#L317
Hardware:
DEC740