I have more information about enabled debug.
I can see a lot of error like:
2024/10/16 10:08:23 indexer-connector: WARNING: IndexerConnector initialization failed for index 'wazuh-states-vulnerabilities-wazuh', retrying until the connection is successful.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1532' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '2031' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1876' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1060' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1675' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1919' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1834' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1972' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1213' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1628' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1525' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '1715' with the indexer.
2024/10/16 11:42:13 indexer-connector: WARNING: Failed to sync agent '985' with the indexer.
When I run GET /_cluster/health, I have this results:
{
"cluster_name": "wazuh-indexer-cluster",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 2,
"number_of_data_nodes": 2,
"discovered_master": true,
"discovered_cluster_manager": true,
"active_primary_shards": 962,
"active_shards": 970,
"relocating_shards": 0,
"initializing_shards": 2,
"unassigned_shards": 867,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 52.746057640021746
}
If I run GET /_cluster/allocation/explain:
{
"index": ".opendistro-reports-instances",
"shard": 0,
"primary": false,
"current_state": "unassigned",
"unassigned_info": {
"reason": "REPLICA_ADDED",
"at": "2024-10-16T15:11:24.553Z",
"last_allocation_status": "no_attempt"
},
How Can I fixed it?
Envoiroment is
2 Indexer server in cluster
2 Wazuh manager in cluster
1 Wazuh dashboard.
Thanks.