Hi khai,
Since the command filebeat test output does not show any errors, I might think you installed correctly filebeat. Did you install Kibana and Wazuh APP? Are you able to see any alerts in the Wazuh APP? Also, let me check everything is going right and you are looking in the correct file for logs. Please refer to /var/ossec/logs/alerts/alerts.(log|json) to check whether the wazuh manager is writing alerts.
Log files from services as apache or mysql should be monitored using the localfile option. In case you already configured it but the logs are not showing up, I might assume that you do not have appropiate rules to detect logs from the services. We can create you custom rules for that.
To help you in a better way, let us know your use of case: which service are you trying to monitorize, the OS distribution you are using and the deployment, if you did a single node installation or distributed.
Regards,
Sergio
Hello again khai,
The output from your /var/ossec/logs/alerts/alerts.log file shows that your Wazuh server is working properly.
On the other hand, seems like Filebeat is trying to connect with elasticsearch but it is not correctly configured. In single-node environments, the output.elasticsearch.hosts on filebeat.yml file should be pointing always to localhost(127.0.0.1) since the certificates are created for that IP address (related configuration in this file).
Once filebeat it is correctly running again, and filebeat test output is all green, please, check out if you can acces Kibana and see alerts there.
After this we could help you monitoring the desired files in your servers and, if needed, creating custom rules.
Regards,
Sergio