Hello,
Thank you for using Wazuh!
In our ruleset, there are already decoders/rules for Apache.
If you have already configured this and it still does not work, you could check if you are receiving general alerts from this agent. If yes, then we should enable archives.json in the manager to check if we are receiving apache logs from that agent. (Archives logs all the data that reaches the manager, even the one that does not match a rule or a decoder)
Here are the instructions to enable archives in the Wazuh Manager:
Enable the archives.json from the /var/ossec/etc/ossec.conf by changing the logall_json option to yes:
<ossec_config>
<global>
...
<logall_json>yes</logall_json>
After restarting the Wazuh Manager, the archives.json file will be filled with all the collected data from agents and external data such as wodles, because of this, you have to disable it when you finished collecting the logs you need.
If you see that the apache logs are reaching the manager in archives but they do not generate alerts (because they do not match with any rule/decoder) you should take these example logs and generate rules/decoders following these instructions:
https://wazuh.com/blog/creating-decoders-and-rules-from-scratch/ This way, you will receive the required alerts with Wazuh.
Note: To check that the logs match with any rule or decoder you can use the binary /var/ossec/bin/wazuh-logtest, paste the log you took from the archives, and as output from the command you will have the reference of which decoders/rules match. Here is the reference to use Wazuh-logtest:
I hope this could be helpful. Please let me know if you have any questions!