Hi Daniel
Did you include a new rule to your new decoder?
Decoders parse different fields from a log, but rules are in charge of enriching the alert, for example adding level or name to each alert.
Once your decoder is working, you can create a new rule to complete the process. you can customize a new rule or modify a default one.
It's possible create a customized rule child from default one, for example main rule to windows_eventchannel is:
Default rule:
<rule id="
60000" level="0">
<category>ossec</category>
<decoded_as>
windows_eventchannel</decoded_as>
<field name="
win.system.providerName">\.+</field>
<options>no_full_log</options>
<description>Group of windows rules</description>
</rule>
An example of customized rule:
<rule id="
100000" level="6">
<if_sid>60000</if_sid> <----- previous rule triggered
<field name="
win.system.channel">^TestRule$</field> <----- win.system.channel field must include "TestRule"
<options>no_full_log</options>
<description>
New test rule.</description>
</rule>
If the event was decoded as
windows_eventchannel, and field
win.system.providerName include something text, will trigger rule id
60000.
After that if the field
win.system.channel includes exactly
TestRule text, and was previously processed by rule
60000 will trigger the custom rule
100000, and the name of the alert will be "
New test rule." as the custom rule.
https://documentation.wazuh.com/current/user-manual/ruleset/custom.html#adding-new-decoders-and-rulesAnother important point is, disable default decoder to keep yours working.
It's necessary to make a copy of the default decoder file before modifying it into
/var/ossec/etc/decoders, customize your decoder, and exclude it by adding a
<decoder_exclude> option into
ossec.conf file. as following link mention
https://documentation.wazuh.com/current/user-manual/ruleset/custom.html#changing-an-existing-decoderI am glad to help you.
Let me know if you need help with rules and how it goes.
Regards.