src/health/guides/elasticsearch/elasticsearch_cluster_health_status_yellow.md
The elasticsearch_cluster_health_status_yellow alert triggers when the Elasticsearch cluster's health status is yellow for longer than 10 minutes. This may indicate potential issues in the cluster, like unassigned or missing replicas. The alert class is Errors, and the type is SearchEngine.
In Elasticsearch, cluster health status can be one of three colors:
You can check the health of the Elasticsearch cluster using the /_cluster/health API endpoint:
curl -XGET 'http://localhost:9200/_cluster/health?pretty'
You can check for any unassigned or missing shards using the /_cat/shards API endpoint:
curl -XGET 'http://localhost:9200/_cat/shards?v&h=index,shard,prirep,state'
sudo journalctl --unit elasticsearch
df -h
Check the elasticsearch.yml configuration file on all nodes for any misconfigurations or errors:
sudo nano /etc/elasticsearch/elasticsearch.yml