[stork-users] logger question

fbcadmin fbcadmin at fantinibakery.com
Sat Nov 30 16:46:45 UTC 2024


yep the following worked.     kea and stork are amazing software and 
have amazing documentation.  Thank You all for that!

      "loggers": [
          {
            "name": "kea-dhcp4",
            "severity": "INFO",
            "debuglevel": 0 ,
            "output-options": [
              {
               "output": "/var/log/dhcp4log",
               // "pattern": "%-5p %m\n",
             } ] ,
         } ,
          {
            "name": "kea-dhcp4.commands",
            "severity": "INFO",
            "debuglevel": 0 ,
            "output-options": [
              {
               "output": "/var/log/kea-dhcp4.commands",
               // "pattern": "%-5p %m\n",
             } ] ,
         }
       ] ,


# then do this:

> /var/log/kea-dhcp4.commands
chown _kea /var/log/kea-dhcp4.commands

On 11/30/24 11:33, fbcadmin wrote:
>
> 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/5d3e88de/attachment.htm>


More information about the Stork-users mailing list