Hello
mahlatse,
Regarding reading from a log file, you are almost there, Your localfile looks good, if that is your log paths.
Since this is out of the way, you need to check the Wazuh Discover dashboard for those events. But please note Wazuh might not be able to decode your logs if the logs do not match a decoder, which means you might have to write decoders and rules to match your logs and trigger an alert, see reference below.
If you do not see your logs on the dashboard, please follow this procedure to enable archives.
Edit the Wazuh manager configuration file
/var/ossec/etc/ossec.conf <global> tag and set the below to yes
<logall>yes</logall>
<logall_json>yes</logall_json>restart the wazuh manager to reflect configuration changes.
systemctl restart wazuh-manager
you can monitor the archives.json file with
cat /var/ossec/logs/archives/archives.json for changes and verify that the logs are visible.
you can disable the archive logging afterwards.
The above step is to ensure the logs from the file are being processed.
Once this is done, you can create custom decoders and rules to capture the events that are interesting to you.
Let me know if you require further assistance on this.
Ref: