[stork-users] logger question

fbcadmin fbcadmin at fantinibakery.com
Sat Nov 30 15:14:05 UTC 2024


the issue was caused by my pattern line in kea-dhcp4.conf :

"pattern": "%-5p %m n"

commenting that out fixed the issue.


On 11/30/24 10:07, fbcadmin wrote:
> [  I had responded to Darren and not the list.  see below ]
>
>
> the issue with the log formatting comes from the log file. there are 
> no line breaks.   the log file consists of one long line.
>
> I do not recall seeing a configuration adjustment available to handle 
> that.   Will recheck..
>
>
>
>>
>> However there is an issue with the way the log is shown in Stork. 
>> there are no line breaks .  the data is wrapped [ see below] .  is 
>> there an option somewhere to configure the log output to be easier to 
>> read?
>>
>>
>> _QUERY_LABEL received query: [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e n INFO 
>> DHCP4_PACKET_RECEIVED [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: DHCPDISCOVER (type 1) 
>> received from 10.1.3.202 to 10.1.3.15 on interface eth0 n INFO 
>> DHCP4_QUERY_LABEL received query: [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e n INFO 
>> DHCP4_PACKET_RECEIVED [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: DHCPDISCOVER (type 1) 
>> received from 10.1.3.201 to 10.1.3.15 on interface eth0 n INFO 
>> DHCP4_LEASE_OFFER [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: lease 10.1.8.125 will be 
>> offered n INFO DHCP4_PACKET_SEND [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: trying to send packet 
>> DHCPOFFER (type 2) from 10.1.3.15:67 to 10.1.8.202:67 on interface 
>> eth0 n INFO DHCP4_LEASE_OFFER [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: lease 10.1.8.125 will be 
>> offered n INFO DHCP4_PACKET_SEND [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: trying to send packet 
>> DHCPOFFER (type 2) from 10.1.3.15:67 to 10.1.8.201:67 on interface 
>> eth0 n INFO DHCP4_QUERY_LABEL received query: [hwtype=1 
>> b6:02:41:8e:97:91], cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e n INFO 
>> DHCP4_PACKET_RECEIVED [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: DHCPREQUEST (type 3) 
>> received from 10.1.3.201 to 10.1.3.15 on interface eth0 n INFO 
>> DHCP4_LEASE_ALLOC [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: lease 10.1.8.125 has been 
>> allocated for 604800 seconds n INFO DHCP4_PACKET_SEND [hwtype=1 
>> b6:02:41:8e:97:91], cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: 
>> trying to send packet DHCPACK (type 5) from 10.1.3.15:67 to 
>> 10.1.8.201:67 on interface eth0 n INFO DHCP4_QUERY_LABEL received 
>> query: [hwtype=1 b6:02:41:8e:97:91], cid=[01:b6:02:41:8e:97:91], 
>> tid=0x33376c3e n INFO DHCP4_PACKET_RECEIVED [hwtype=1 
>> b6:02:41:8e:97:91], cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: 
>> DHCPREQUEST (type 3) received from 10.1.3.202 to 10.1.3.15 on 
>> interface eth0 n INFO DHCP4_LEASE_ALLOC [hwtype=1 b6:02:41:8e:97:91], 
>> cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: lease 10.1.8.125 has been 
>> allocated for 604800 seconds n INFO DHCP4_PACKET_SEND [hwtype=1 
>> b6:02:41:8e:97:91], cid=[01:b6:02:41:8e:97:91], tid=0x33376c3e: 
>> trying to send packet DHCPACK (type 5) from 10.1.3.15:67 to 
>> 10.1.8.202:67 on interface eth0 n INFO DHCP4_QUERY_LABEL received 
>> query: [hwtype=1 00:ff:b7:73:53:57], cid=[01:00:ff:b7:73:53:57], 
>> tid=0xaea6 n INFO DHCP4_QUERY_LABEL received query: [hwtype=1 
>> 00:ff:b7:73:53:57], cid=[01:00:ff:b7:73:53:57], tid=0xaea6 n INFO 
>> COMMAND_RECEIVED Received command 'statistic-get-all' n INFO 
>> COMMAND_RECEIVED Received command 'subnet4-list' n INFO 
>> COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'status-get' n INFO 
>> COMMAND_RECEIVED Received command 'config-get' n INFO 
>> COMMAND_RECEIVED Received command 'statistic-get-all' n INFO 
>> COMMAND_RECEIVED Received command 'subnet4-list' n INFO 
>> COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'statistic-get-all' n INFO 
>> COMMAND_RECEIVED Received command 'subnet4-list' n INFO 
>> COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'stat-lease4-get' n INFO 
>> STAT_CMDS_LEASE4_GET stat-lease4-get command successful, parameters: 
>> [all subnets] rows found: 20 n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get' n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get-all' n INFO COMMAND_RECEIVED Received command 
>> 'subnet4-list' n INFO COMMAND_RECEIVED Received command 'version-get' 
>> n INFO DHCP4_QUERY_LABEL received query: [hwtype=1 
>> 00:ff:b7:73:53:57], cid=[01:00:ff:b7:73:53:57], tid=0xaea6 n INFO 
>> DHCP4_QUERY_LABEL received query: [hwtype=1 00:ff:b7:73:53:57], 
>> cid=[01:00:ff:b7:73:53:57], tid=0xaea6 n INFO COMMAND_RECEIVED 
>> Received command 'version-get' n INFO COMMAND_RECEIVED Received 
>> command 'status-get' n INFO COMMAND_RECEIVED Received command 
>> 'config-get' n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get-all' n INFO COMMAND_RECEIVED Received command 
>> 'subnet4-list' n INFO COMMAND_RECEIVED Received command 'version-get' 
>> n INFO COMMAND_RECEIVED Received command 'statistic-get-all' n INFO 
>> COMMAND_RECEIVED Received command 'subnet4-list' n INFO 
>> COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'statistic-get-all' n INFO 
>> COMMAND_RECEIVED Received command 'subnet4-list' n INFO 
>> COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'status-get' n INFO 
>> COMMAND_RECEIVED Received command 'config-get' n INFO 
>> DHCP4_QUERY_LABEL received query: [hwtype=1 00:ff:b7:73:53:57], 
>> cid=[01:00:ff:b7:73:53:57], tid=0xaea6 n INFO DHCP4_QUERY_LABEL 
>> received query: [hwtype=1 00:ff:b7:73:53:57], 
>> cid=[01:00:ff:b7:73:53:57], tid=0xaea6 n INFO COMMAND_RECEIVED 
>> Received command 'statistic-get-all' n INFO COMMAND_RECEIVED Received 
>> command 'subnet4-list' n INFO COMMAND_RECEIVED Received command 
>> 'version-get' n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get-all' n INFO COMMAND_RECEIVED Received command 
>> 'subnet4-list' n INFO COMMAND_RECEIVED Received command 'version-get' 
>> n INFO COMMAND_RECEIVED Received command 'stat-lease4-get' n INFO 
>> STAT_CMDS_LEASE4_GET stat-lease4-get command successful, parameters: 
>> [all subnets] rows found: 20 n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get' n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get-all' n INFO COMMAND_RECEIVED Received command 
>> 'subnet4-list' n INFO COMMAND_RECEIVED Received command 'version-get' 
>> n INFO COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'status-get' n INFO 
>> COMMAND_RECEIVED Received command 'config-get' n INFO 
>> DHCP4_QUERY_LABEL received query: [hwtype=1 00:ff:b7:73:53:57], 
>> cid=[01:00:ff:b7:73:53:57], tid=0xaea6 n INFO DHCP4_QUERY_LABEL 
>> received query: [hwtype=1 00:ff:b7:73:53:57], 
>> cid=[01:00:ff:b7:73:53:57], tid=0xaea6 n INFO COMMAND_RECEIVED 
>> Received command 'statistic-get-all' n INFO COMMAND_RECEIVED Received 
>> command 'subnet4-list' n INFO COMMAND_RECEIVED Received command 
>> 'version-get' n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get-all' n INFO COMMAND_RECEIVED Received command 
>> 'subnet4-list' n INFO COMMAND_RECEIVED Received command 'version-get' 
>> n INFO COMMAND_RECEIVED Received command 'statistic-get-all' n INFO 
>> COMMAND_RECEIVED Received command 'subnet4-list' n INFO 
>> COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'status-get' n INFO 
>> COMMAND_RECEIVED Received command 'config-get' n INFO 
>> DHCP4_QUERY_LABEL received query: [hwtype=1 00:ff:b7:73:53:57], 
>> cid=[01:00:ff:b7:73:53:57], tid=0xaea6 n INFO DHCP4_QUERY_LABEL 
>> received query: [hwtype=1 00:ff:b7:73:53:57], 
>> cid=[01:00:ff:b7:73:53:57], tid=0xaea6 n INFO COMMAND_RECEIVED 
>> Received command 'statistic-get-all' n INFO COMMAND_RECEIVED Received 
>> command 'subnet4-list' n INFO COMMAND_RECEIVED Received command 
>> 'version-get' n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get-all' n INFO COMMAND_RECEIVED Received command 
>> 'subnet4-list' n INFO COMMAND_RECEIVED Received command 'version-get' 
>> n INFO COMMAND_RECEIVED Received command 'stat-lease4-get' n INFO 
>> STAT_CMDS_LEASE4_GET stat-lease4-get command successful, parameters: 
>> [all subnets] rows found: 20 n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get' n INFO COMMAND_RECEIVED Received command 
>> 'statistic-get-all' n INFO COMMAND_RECEIVED Received command 
>> 'subnet4-list' n INFO COMMAND_RECEIVED Received command 'version-get' 
>> n INFO COMMAND_RECEIVED Received command 'version-get' n INFO 
>> COMMAND_RECEIVED Received command 'status-get' n INFO 
>> COMMAND_RECEIVED Received
>>
>>
>>
>> On 11/30/24 06:26, Darren Ankney wrote:
>>> Hi,
>>>
>>> I don't think you are doing anything wrong in Stork.  In Kea, however,
>>> you will probably need to specify the full path to the log file.  Even
>>> if Kea is able to put this data somewhere, Stork probably won't know
>>> where to find it without the full path.
>>>
>>> Thank you,
>>> Darren Ankney
>>>
>>> On Fri, Nov 29, 2024 at 8:56 PM fbcadmin 
>>> <fbcadmin at fantinibakery.com> wrote:
>>>> I am trying to view dhcp4 log at stork.
>>>>
>>>> my config:
>>>>       "loggers": [
>>>>           {
>>>>             "name": "kea-dhcp4",
>>>>             "severity": "INFO",
>>>>             "debuglevel": 0 ,
>>>>             "output-options": [
>>>>               {
>>>>                "output": "dhcp4log",
>>>>                "pattern": "%-5p %m n",
>>>>              } ] ,
>>>>          }
>>>>        ] ,
>>>>
>>>> At stork the file name shows up as a clickable link at the file name.
>>>> when I click this error occurs:  Failed to fetch log file contents.
>>>>
>>>> on the dhcp server I ran 'updatedb' and  then  'locate dhcp4log'  . 
>>>> the file is not found.
>>>>
>>>> what am I doing wrong?
>>>>
>>>> -- 
>>>> Stork-users mailing list
>>>> Stork-users at lists.isc.org
>>>> https://lists.isc.org/mailman/listinfo/stork-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20241130/0e9a3c40/attachment.htm>


More information about the Stork-users mailing list