Hello,
Thank you for sharing your query with us.
Adding these <localfile> configuration will purse the logs from these location defined and send them to the wazuh manager. However, to generate alerts, these logs need to be decoded by the decoders and trigger rules present in your wazuh manager.
First, you can verify that the expected logs are coming to the manager checking the /var/ossec/logs/archives/archives.log and
/var/ossec/logs/archives/archives.json files like these:
cat
/var/ossec/logs/archives/archives.log | grep "
/var/log/bind/query.log"
cat /var/ossec/logs/archives/archives.log | grep " /var/log/bind/misc.log"
Please ensure that archives are enabled in you manager's ossec.conf with logall and logall_json to be set yes. The configuration should be like:
<logall>yes</logall>
<logall_json>yes</logall_json>
Secondly, if the logs are coming to the manager, you need to check if they are being decoded properly and triggering rules or not. You can can do it using the wazuh-logtest feature in Wazuh manager. You will find more information about this here:
How it works - Wazuh-Logtest · Wazuh documentation
Third, if this logs are not being decoded or not triggering any rules, you need to create custom decoders and rules for them to generate alerts. You can review the following documents to learn more about custom rules and decoders.