[stork-users] logger question

fbcadmin fbcadmin at fantinibakery.com
Sat Nov 30 16:33:43 UTC 2024


I think the solution is at 
https://kea.readthedocs.io/en/kea-2.6.1/arm/logging.html

I'll try to set up a seprate log for kea-dhcp4.commands


On 11/30/24 10:35, fbcadmin wrote:
> Is there a way to filter out kea-dhcp4.commands from logging?
>
>
> we'd like to see mainly dhcp items like this:
>
> 2024-11-30 10:31:48.895 INFO [kea-dhcp4.dhcp4/133775.134739153389248] 
> DHCP4_QUERY_LABEL received query: [hwtype=1 7e:4a:30:80:89:65], 
> cid=[01:7e:4a:30:80:89:65], tid=0x4715cb4a
> 2024-11-30 10:31:48.895 INFO 
> [kea-dhcp4.packets/133775.134739153389248] DHCP4_PACKET_RECEIVED 
> [hwtype=1 7e:4a:30:80:89:65], cid=[01:7e:4a:30:80:89:65], 
> tid=0x4715cb4a: DHCPDISCOVER (type 1) received from 0.0.0.0 to 
> 255.255.255.255 on interface eth0
> 2024-11-30 10:31:48.895 INFO [kea-dhcp4.leases/133775.134739153389248] 
> DHCP4_LEASE_OFFER [hwtype=1 7e:4a:30:80:89:65], 
> cid=[01:7e:4a:30:80:89:65], tid=0x4715cb4a: lease 10.199.33.186 will 
> be offered
> 2024-11-30 10:31:48.897 INFO 
> [kea-dhcp4.packets/133775.134739153389248] DHCP4_PACKET_SEND [hwtype=1 
> 7e:4a:30:80:89:65], cid=[01:7e:4a:30:80:89:65], tid=0x4715cb4a: trying 
> to send packet DHCPOFFER (type 2) from 10.199.0.3:67 to 
> 10.199.33.186:68 on interface eth0
>
>
> and exclude these, which are 90%+ of the log file:
>
>
> 2024-11-30 10:32:28.619 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'subnet4-list'
> 2024-11-30 10:32:28.699 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'version-get'
> 2024-11-30 10:32:38.615 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'statistic-get-all'
> 2024-11-30 10:32:38.620 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'subnet4-list'
> 2024-11-30 10:32:38.695 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'version-get'
> 2024-11-30 10:32:48.606 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'statistic-get-all'
> 2024-11-30 10:32:48.610 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'subnet4-list'
> 2024-11-30 10:32:48.693 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'version-get'
> 2024-11-30 10:32:49.897 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'version-get'
> 2024-11-30 10:32:49.898 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'status-get'
> 2024-11-30 10:32:49.900 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'config-get'
> 2024-11-30 10:32:50.326 INFO 
> [kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED Received 
> command 'stat-lease4-get'
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20241130/6ac08cb6/attachment.htm>


More information about the Stork-users mailing list