Hello,
This changes the narrative entirely, but to confirm, please run the command to check the cluster health and if you see something similar to the below: curl -k -u <WAZUH_INDEXER_USERNAME>:<WAZUH_INDEXER_PASSWORD> -XGET https://<WAZUH_INDEXER_IP>:9200/_cluster/health?pretty
> `"active_primary_shards" : 1000,
> "active_shards" : 1000,`
Then this means you have maxed out on the shards usage and in turn data would not be populated on the dashboard anymore.
To fix this, there are different ways, you can add more nodes to the Indexer cluster, this would enhance capacity and resiliency of your setup, more about this here.
Ref:
https://documentation.wazuh.com/current/user-manual/wazuh-indexer-cluster/add-wazuh-indexer-nodes.htmlThe other option is to delete old indices or better still setup a retention policy via the indexer lifecycle management.
curl -k -u admin:<password> "
https://localhost:9200/_cat/indices?v&s=index"
curl -k -u admin:<password> "
https://localhost:9200/_cat/shards?v"
You can delete old indices by making use of Dev Tools.
To list the indices you have, use UI>> Indexer Management > Dev Tools, run command `GET _cat/indices?v` . This will list the indices you have. From there you can now delete the old indices of your choice, `run DELETE /<indices_to_delete>`. For example `DELETE /wazuh-alerts-4.x-2025.01.02`
But please note, deleting shards by deleting indices means removing data, maybe old, but you need to be careful with the indices you delete.
Once you have freed up shards, then follow the guide below to set up a retention policy, which is a long-term fix.
Ref:
https://documentation.wazuh.com/current/user-manual/wazuh-indexer-cluster/index-lifecycle-management.html