Hi ! Hope you're doing great :-)
Here's my issue :
I created a custom decoder and a custom rule to generate alerts when receiving UniFi logs. (I'm interrested in seeing yours @Kevin Branch)
When I use the wazuh-logtest binary to test these with a UniFi log, the custom rule is triggered and an alert is generated.
But in real, nothing happens...
Here are my decoder and rule :
<decoder name="unifi">
<prematch type="pcre2">UAP-</prematch>
</decoder>
<rule id="100013" level="5"> <decoded\_as>unifi</decoded\_as>
<description>UniFi wifi log</description>
</rule>
For now they are really simple, as I just want to trigger the rule and have an alert generated with any message received from the UniFi controller. I want to be sure that the log matches with my decoder. No need to extract any information for now.
FYI, here's what an UniFi log looks like (listened with a Syslog server) :
May 28 17:36:23 wap001 78455819c06e,UAP-AC-InWall-6.0.18+13660: logread[3288]: Logread connected to
192.168.1.49:514As I said, it triggers the rule when I try it with /var/ossec/bin/wazuh-logtest, but not in real use.
I am using Wazuh v4.2.5 and UniFi controller v7.1.65
If anyone can help me with that I'd be really happy :-)
Thanks !