kead-dhcp sent log example:{"timestamp":"2025-03-13T22:36:29.506+0100","agent":{"id":"005","name":"FW-SIEM","ip":"192.168.100.1"}, "manager":{"name":"tesitwi-SIEM"},"id":"1741901789.3725755", "full_log":"<134>1 2025-03-13T22:36:29.388035+01:00
fw-siem.unicam.it kea-dhcp4 97357 - - INFO [kea-dhcp4.dhcpsrv.0x2172614fd800] EVAL_RESULT Expression pool_lan_0 evaluated to 1", "decoder":{"name":"kea-dhcp"},"location":"/var/log/dhcpd.log"}
{"timestamp":"2025-03-13T22:36:29.507+0100","agent":{"id":"005","name":"FW-SIEM","ip":"192.168.100.1"}, "manager":{"name":"tesitwi-SIEM"},"id":"1741901789.3725755", "full_log":"<134>1 2025-03-13T22:36:29.388545+01:00
fw-siem.unicam.it kea-dhcp4 97357 - - INFO [kea-dhcp4.leases.0x2172614fd800] DHCP4_INIT_REBOOT [hwtype=1 bc:24:11:d1:f0:0a], cid=[ff:3c:fb:60:65:00:02:00:00:ab:11:87:b9:57:35:01:fe:32:e5], tid=0x6be555a9: client is in INIT-REBOOT state and requests address 192.168.100.100", "decoder":{"parent":"kea-dhcp","name":"kea-dhcp"},"location":"/var/log/dhcpd.log"}
{"timestamp":"2025-03-13T22:36:29.510+0100","agent":{"id":"005","name":"FW-SIEM","ip":"192.168.100.1"}, "manager":{"name":"tesitwi-SIEM"},"id":"1741901789.3725755", "full_log":"<134>1 2025-03-13T22:36:29.389265+01:00
fw-siem.unicam.it kea-dhcp4 97357 - - INFO [kea-dhcp4.leases.0x2172614fd800] DHCP4_LEASE_ALLOC [hwtype=1 bc:24:11:d1:f0:0a], cid=[ff:3c:fb:60:65:00:02:00:00:ab:11:87:b9:57:35:01:fe:32:e5], tid=0x6be555a9: lease 192.168.100.100 has been allocated for 7200 seconds", "decoder":{"parent":"kea-dhcp","name":"kea-dhcp"},"location":"/var/log/dhcpd.log"}
Current decoder: <decoder name="kea-dhcp">
<prematch>kea-dhcp4</prematch>
</decoder>
<decoder name="kea-dhcp-lease-alloc">
<parent>kea-dhcp</parent>
<prematch>DHCP4_LEASE_ALLOC</prematch>
<regex type="pcre2">
DHCP4_LEASE_ALLOC.*hwtype=(\d+)\s+([\da-fA-F:]+),\s+cid=\[([^\]]+)\],\s+tid=([^:]+):\s+lease\s+([\d\.]+)\s+has\s+been\s+allocated\s+for\s+(\d+)\s+seconds
</regex>
<order>hwtype,client_mac,client_id,transaction_id,allocated_ip,lease_second</order>
</decoder>
<decoder name="kea-dhcp-init-reboot">
<parent>kea-dhcp</parent>
<prematch>DHCP4_INIT_REBOOT</prematch>
<regex type="pcre2">
DHCP4_INIT_REBOOT.*hwtype=(\d+)\s+([\da-fA-F:]+),\s+cid=\[([^\]]+)\],\s+tid=([^:]+):\s+client\s+is\s+in\s+INIT-REBOOT\s+state\s+and\s+requests\s+address\s+([\d\.]+)
</regex>
<order>hwtype,client_mac,client_id,transaction_id,requested_ip</order>
</decoder>
Current rules for alerts:
<group name="kea-dhcp">
<rule id="90000" level="3">
<decoded_as>kea-dhcp-lease-alloc</decoded_as>
<description>Kea DHCP Lease Allocation: client MAC $(client_mac) ha ricevuto l'IP $(allocated_ip) per $(lease_second) secondi.</description>
<group>kea-dhcp,allocation</group>
</rule>
<rule id="90001" level="3">
<decoded_as>kea-dhcp-init-reboot</decoded_as>
<description>Kea DHCP INIT-REBOOT: client MAC $(client_mac) ha richiesto l'IP $(requested_ip).</description>
<group>kea-dhcp,init-reboot</group>
</rule>
</group>
With this configuration, when the logs reach the wazuh manager, no alerts were triggered.
In this configuration, I recieve no errors when saving the xml files, but I don't get the XML syntax error that I get when I try to change something. I consulted the documentation, but I'm still confused.
P.S. pfSense ce-2-7-2, the wazuh manager is the latest version.
I don't know what I am doing wrong, hope you can help me.
Kind regards,
Twinkal
