Hello,
To check what may be happening, we are going to carry out the following checks:
- We are going to see if the alerts are arriving correctly at Kibana, to do this, in the container where the manager is hosted, execute the following command (with which we will obtain the last alert):
tail -1 /var/ossec/logs/alerts/alerts.json
Then we will go to the Discover of Kibana and check that precisely that same alert appears.
Then, let's check the data flow between Wazuh and Elasticsearch. It is possible that alerts information is not being sent correctly from Filebeat to Elasticsearch, so you should first check if you have Filebeat correctly configured and alerts are being sent to Elasticsearch.
For this, run these commands:
Check that the filebeat service is running:
systemctl status filebeat
Check if Filebeat has communication with Elasticsearch:
filebeat test output
Check for any possible error in the elasticsearch log:
grep -i error /var/log/elasticsearch/elasticsearch.log
Could you share the output of the above commands (please hide possible sensitive data if any)?