This could be caused by the next reasons:
- the data is not indexed due a problem in the workflow of generation and indexation
- the filters used in Wazuh dashboards don't match with any documents
How to review the generation and indexation flow of Wazuh alerts
- Check the Wazuh manager/s service is running
systemctl status wazuh-manager
or
service wazuh-manager-master
- Ensure the Wazuh manager/s is generating new alerts. Review the alerts.json file where the alerts are stored.
tail -n1 /var/ossec/logs/alerts/alerts.json
The previous command, should display the last line of the alerts.json file. Review if the timestamp property displays a recent date.
- Ensure the wazuh module is installed
ls /usr/share/filebeat/module/wazuh
- Check the Filebeat service is running
systemctl status filebeat
or
service filebeat status
- Verify the connection Filebeat
filebeat test output
- Review the Filebeat logs ( you could filter by errors/warnings ):
grep -iE "err|warn" /var/log/filebeat/filebeat
- Optionally, you could review the Wazuh indexer logs too, but the problem could be identified in the above check.
grep -iE "err|warn" /var/log/wazuh-indexer/<CLUSTER_NAME>.log
where:
- <CLUSTER_NAME> is the name of your Wazuh indexer cluster.
- Ensure the Wazuh dashboard instance is connected to the same Wazuh indexer cluster where the data is being indexed.
Problem could be caused by the filtering of data
The Wazuh plugin filters
Did you changed the name of your cluster recently? This change could causes that you don't see previous alerts.