Based on your input, there are no resource issues on the servers and no error logs, but the alerts are still showing on the dashboard around 5 minutes late.
If the alerts are appearing on time in alerts.json but not on the dashboard, then the delay may be between alert generation and ingestion into the Wazuh indexer.
You can follow the steps below.
First, ensure that all Wazuh servers are using the same timezone and that NTP is enabled on all servers.
Run the below commands on all Wazuh servers:
Compare the timezone and time output across all servers. If they are not aligned, update the timezone and time configuration so they are consistent across all Wazuh servers.
Also, ensure that NTP is active.
After that, check whether alerts are showing correctly on the dashboard or if the delay still exists.
If there is still a delay, on the dashboard go to:
Hamburger menu > Dashboard Management > Dashboards Management > Advanced Settings
Search for the Timezone for date formatting option and ensure that the timezone is configured correctly.
Also, clear the browser cache and check whether the alerts are appearing on the dashboard on time.
If the issue still persists, follow the steps below.
Trigger a specific alert, for example, an SSH failed login alert.
Then on the Wazuh manager, tail the alerts.json file for that rule ID:
Replace <rule-id> with the alert rule ID you triggered. For example, the default rule ID for SSH failed login is 5760.
Then, on the Wazuh indexer server, run the below command to fetch the latest 10 logs for the same rule ID:
Replace the following values:
Then share the both command output with us.
Also, please share the following Filebeat alerts pipeline file from the Wazuh manager: /usr/share/filebeat/module/wazuh/alerts/ingest/pipeline.json
Run and share the output of the below command:
curl -sk -u admin:<password> "https://<indexer-ip>:9200/_index_template?pretty"This will show whether any composable index templates exist.
Please share the Filebeat configuration file: /etc/filebeat/filebeat.yml
Finally, please share the Wazuh indexer and Filebeat log files as well. These details will help us analyze the issue further and assist you better.