Hi Dirk,
The section in the documentation you refer to is
Windows Eventlog vs Windows Eventchannel. To summarize,eventlog has limitations on monitoring specific logs, while Eventchannel offers greater flexibility in monitoring various log sources, including the ability to use queries for filtering and can monitor the Application and Services logs along with the basic Windows logs.
As for the custom rules and decoders, let me explain to you how it works. First, the logs are generated by servers or devices and sent to the manager server. Then the logs are decoded by the default decoders that are present at the manager side
/var/ossec/ruleset/decoders. If you get the logs but they didn't match the default decoder, in that case, you have to make custom decoders. Once the log is decoded it will match to default rules that are present at the manager server
/var/ossec/ruleset/rules/. If it doesn't match any of the rules or the rule level is less than 3 you won't get any alerts, in that case, you have to make rules on the bases of decoders and log at /var/ossec/etc/rule/local_rules.xml .
To check if you are receiving a log or not for eventchannel log_format or if the wazuh is monitoring directory service you can look into
/var/ossec/logs/ossec.log and
/var/ossec/logs/archives/archives.json. Before checking the archives.json folder please change the value of these two fields to yes
<logall>yes</logall> <logall_json>yes</logall_json>.
It id present at
/var/ossec/etc/ossec.conf
So, if logs reach the manager but you don't get alters in that situation to need to create custom rules and decoders. If you have a log and you want to test it you can run the log at
/var/ossec/bin/wazuh-logtest and there you can see the decoders and rules for that particular log.
to get more information on how to collect logs you can refer to
https://documentation.wazuh.com/current/user-manual/capabilities/log-data-collection/index.htmlFor custom rules and decoders, you can refer to
https://documentation.wazuh.com/current/user-manual/ruleset/custom.html