Hello
Mélina,
Where did you capture this log from?
If this is from the ossec.log, could please share the log? Another possible reason could be the permission of the local_rules.xml file. Please use ls -la local_rules.xml to check the permission of the file.
Please see reference attached. The file should have read, write for user and group and the ownership should be wazuh.
chmod 660 /var/ossec/etc/rules/local_rules.xml
chown wazuh:wazuh /var/ossec/etc/
rules/local_rules.xml
follow the steps above as prescribe, then restart the wazuh manager
systemctl restart wazuh-manager.service
I hope this helps
On Friday, January 10, 2025 at 3:27:54 PM UTC+1 Mélina Derdab wrote:
Hello, I'm getting this error, how can I fix it? I've seen this problem come up a lot Could not open file ‘/var/ossec/etc/rules/local_rules.xml’ due to [(2)-(No such file or directory)].