Get the cluster health Added in 8.7.0
Get a report with the health status of an Elasticsearch cluster. The report contains a list of indicators that compose Elasticsearch functionality.
Each indicator has a health status of: green, unknown, yellow or red. The indicator will provide an explanation and metadata describing the reason for its current health status.
The cluster’s status is controlled by the worst indicator status.
In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system.
Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. The root cause and remediation steps are encapsulated in a diagnosis. A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem.
NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic.
Responses
-
200 application/json
Hide response attributes Show response attributes object
-
Additional properties are allowed.
Hide indicators attributes Show indicators attributes object
-
master_is_stable object
Additional properties are allowed.
Hide master_is_stable attributes Show master_is_stable attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
impacts array[object]
Hide impacts attributes Show impacts attributes object
-
Values are
search
,ingest
,backup
, ordeployment_management
.
-
diagnosis array[object]
Hide diagnosis attributes Show diagnosis attributes object
-
Additional properties are allowed.
-
details object
Additional properties are allowed.
Hide details attributes Show details attributes object
-
Additional properties are allowed.
-
Additional properties are allowed.
-
exception_fetching_history object
Additional properties are allowed.
Hide exception_fetching_history attributes Show exception_fetching_history attributes object
-
cluster_formation array[object]
Additional properties are allowed.
-
-
-
shards_availability object
Additional properties are allowed.
Hide shards_availability attributes Show shards_availability attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
impacts array[object]
Hide impacts attributes Show impacts attributes object
-
Values are
search
,ingest
,backup
, ordeployment_management
.
-
diagnosis array[object]
Hide diagnosis attributes Show diagnosis attributes object
-
Additional properties are allowed.
-
details object
Additional properties are allowed.
Hide details attributes Show details attributes object
-
-
disk object
Additional properties are allowed.
Hide disk attributes Show disk attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
impacts array[object]
Hide impacts attributes Show impacts attributes object
-
Values are
search
,ingest
,backup
, ordeployment_management
.
-
diagnosis array[object]
Hide diagnosis attributes Show diagnosis attributes object
-
Additional properties are allowed.
-
details object
Additional properties are allowed.
Hide details attributes Show details attributes object
-
-
repository_integrity object
Additional properties are allowed.
Hide repository_integrity attributes Show repository_integrity attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
impacts array[object]
Hide impacts attributes Show impacts attributes object
-
Values are
search
,ingest
,backup
, ordeployment_management
.
-
diagnosis array[object]
Hide diagnosis attributes Show diagnosis attributes object
-
Additional properties are allowed.
-
details object
Additional properties are allowed.
Hide details attributes Show details attributes object
-
total_repositories number
-
corrupted_repositories number
-
corrupted array[string]
-
-
-
data_stream_lifecycle object
Additional properties are allowed.
Hide data_stream_lifecycle attributes Show data_stream_lifecycle attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
impacts array[object]
Hide impacts attributes Show impacts attributes object
-
Values are
search
,ingest
,backup
, ordeployment_management
.
-
diagnosis array[object]
Hide diagnosis attributes Show diagnosis attributes object
-
Additional properties are allowed.
-
details object
Additional properties are allowed.
Hide details attributes Show details attributes object
-
stagnating_backing_indices array[object]
Additional properties are allowed.
-
-
ilm object
Additional properties are allowed.
Hide ilm attributes Show ilm attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
impacts array[object]
Hide impacts attributes Show impacts attributes object
-
Values are
search
,ingest
,backup
, ordeployment_management
.
-
diagnosis array[object]
Hide diagnosis attributes Show diagnosis attributes object
-
Additional properties are allowed.
-
details object
Additional properties are allowed.
Hide details attributes Show details attributes object
-
Values are
RUNNING
,STOPPING
, orSTOPPED
.
-
-
-
slm object
Additional properties are allowed.
Hide slm attributes Show slm attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
impacts array[object]
Hide impacts attributes Show impacts attributes object
-
Values are
search
,ingest
,backup
, ordeployment_management
.
-
diagnosis array[object]
Hide diagnosis attributes Show diagnosis attributes object
-
Additional properties are allowed.
-
details object
Additional properties are allowed.
Hide details attributes Show details attributes object
-
Values are
RUNNING
,STOPPING
, orSTOPPED
. -
unhealthy_policies object
Additional properties are allowed.
Hide unhealthy_policies attributes Show unhealthy_policies attributes object
-
-
-
shards_capacity object
Additional properties are allowed.
Hide shards_capacity attributes Show shards_capacity attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
impacts array[object]
Hide impacts attributes Show impacts attributes object
-
Values are
search
,ingest
,backup
, ordeployment_management
.
-
diagnosis array[object]
Hide diagnosis attributes Show diagnosis attributes object
-
Additional properties are allowed.
-
details object
Additional properties are allowed.
Hide details attributes Show details attributes object
-
Additional properties are allowed.
Hide data attributes Show data attributes object
-
current_used_shards number
-
Additional properties are allowed.
Hide frozen attributes Show frozen attributes object
-
current_used_shards number
-
-
-
file_settings object
Additional properties are allowed.
Hide file_settings attributes Show file_settings attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
impacts array[object]
Hide impacts attributes Show impacts attributes object
-
Values are
search
,ingest
,backup
, ordeployment_management
.
-
diagnosis array[object]
Hide diagnosis attributes Show diagnosis attributes object
-
Additional properties are allowed.
-
details object
Additional properties are allowed.
Hide details attributes Show details attributes object
-
-
-
status string
Values are
green
,yellow
,red
, orunknown
.
curl \
-X GET http://api.example.com/_health_report
{
"cluster_name": "string",
"indicators": {
"": {
"status": "green",
"symptom": "string",
"impacts": [
{
"description": "string",
"id": "string",
"impact_areas": [
"search"
],
"severity": 42.0
}
],
"diagnosis": [
{
"id": "string",
"action": "string",
"affected_resources": {},
"cause": "string",
"help_url": "string"
}
],
"details": {
"failure_streak": 42.0,
"most_recent_failure": "string"
}
}
},
"status": "green"
}