Closed 12DCE085 closed 1 month ago
Hello.
If you mention that the Wazuh manager exits with an error code 1 and with the wazuh-execd: Configuration error
message, it means that the configuration that you inserted in the ossec.conf
file is not valid.
I have analyzed your configuration and, when inserting the block to configure the Wazuh agent and monitor the Apache access logs, there is a localfiles
tag, instead of the localfile
tag:
<localfile>
<log_format>syslog</log_format>
<location>/var/log/apache2/access.log</location>
</localfiles>
Please, change the string localfiles
to localfile
, restart the Wazuh manager service with the systemctl restart wazuh-manager
command, and check if everything is alright. Also, please check your configuration file if the manager is reporting that something is wrong with your configuration in this cases.
I had installed the agent on the client and it was working fine after doing the configuration of the malicious IP blocking as per the documentation the agent is not getting live and exiting with the error code 1 and with the wazuh-execd: Configuration error.
also attaching the ossec.conf file of the agent in this post