<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>yep the following worked. kea and stork are amazing software
and have amazing documentation. Thank You all for that!</p>
<p><font face="monospace"> "loggers": [<br>
{<br>
"name": "kea-dhcp4",<br>
"severity": "INFO",<br>
"debuglevel": 0 ,<br>
"output-options": [<br>
{<br>
"output": "/var/log/dhcp4log",<br>
// "pattern": "%-5p %m\n",<br>
} ] ,<br>
} ,<br>
{<br>
"name": "kea-dhcp4.commands",<br>
"severity": "INFO",<br>
"debuglevel": 0 ,<br>
"output-options": [<br>
{<br>
"output": "/var/log/kea-dhcp4.commands",<br>
// "pattern": "%-5p %m\n",<br>
} ] ,<br>
}<br>
] ,<br>
</font></p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;"><br>
</span></span></p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;"># then do
this:<br>
</span></span></p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">>
/var/log/kea-dhcp4.commands
</span><br>
<span style="color:#000000;background-color:#ffffff;">chown _kea
/var/log/kea-dhcp4.commands</span><br>
</span></p>
<div class="moz-cite-prefix">On 11/30/24 11:33, fbcadmin wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20241130163357.8918F2E8D3@Mail.fantinibakery.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>I think the solution is at <a class="moz-txt-link-freetext"
href="https://kea.readthedocs.io/en/kea-2.6.1/arm/logging.html"
moz-do-not-send="true">https://kea.readthedocs.io/en/kea-2.6.1/arm/logging.html</a></p>
<p>I'll try to set up a seprate log for <span
style="color: rgb(0, 0, 0); font-size: 10.8px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">kea-dhcp4.commands</span></p>
<p><span
style="color: rgb(0, 0, 0); font-size: 10.8px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"><br>
</span></p>
<div class="moz-cite-prefix">On 11/30/24 10:35, fbcadmin wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20241130153511.B43CA2E873@Mail.fantinibakery.com">Is
there a way to filter out kea-dhcp4.commands from logging? <br>
<br>
<br>
we'd like to see mainly dhcp items like this: <br>
<br>
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 <br>
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 <br>
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 <br>
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 <br>
<br>
<br>
and exclude these, which are 90%+ of the log file: <br>
<br>
<br>
2024-11-30 10:32:28.619 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'subnet4-list' <br>
2024-11-30 10:32:28.699 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'version-get' <br>
2024-11-30 10:32:38.615 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'statistic-get-all' <br>
2024-11-30 10:32:38.620 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'subnet4-list' <br>
2024-11-30 10:32:38.695 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'version-get' <br>
2024-11-30 10:32:48.606 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'statistic-get-all' <br>
2024-11-30 10:32:48.610 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'subnet4-list' <br>
2024-11-30 10:32:48.693 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'version-get' <br>
2024-11-30 10:32:49.897 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'version-get' <br>
2024-11-30 10:32:49.898 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'status-get' <br>
2024-11-30 10:32:49.900 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'config-get' <br>
2024-11-30 10:32:50.326 INFO
[kea-dhcp4.commands/133775.134739268973632] COMMAND_RECEIVED
Received command 'stat-lease4-get' <br>
<br>
</blockquote>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
</body>
</html>