Dear Anak,
Thank you for using Wazuh!
To monitor a log file on a system (assuming a Linux endpoint) that has Wazuh agent installed, kindly follow the below steps.
1- Add the below configuration on the Wazuh agent by editing the
/var/ossec/etc/ossec.conf file
<localfile><location>/PATH_TO_APACHE_LOG/</location>
<log_format>syslog</log_format>
</localfile>
Where
PATH_TO_APACHE_LOG represents the full path to the apache log. For example if you save your apache log in a log file named
apache.log that is located in
/var/log/. The above configuration will take this format.
<localfile><location>/var/log/apache.log</location>
<log_format>syslog</log_format>
</localfile>
2- Restart the Wazuh agent for your changes to take effect.
systemctl restart wazuh-agent OR
service wazuh-agent restart
Wazuh has default decoder and rules for apache logs:
Regards,