Get the cluster health
Generally available; 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.
Query parameters
-
Explicit operation timeout.
Values are
-1
or0
. -
Opt-in for more information about the health of the system.
-
Limit the number of affected resources the health report API returns.
Responses
-
Hide response attributes Show response attributes object
-
Hide indicators attributes Show indicators attributes object
-
MASTER_IS_STABLE
Hide master_is_stable attributes Show master_is_stable attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
Hide details attributes Show details attributes object
-
-
SHARDS_AVAILABILITY
Hide shards_availability attributes Show shards_availability attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
Hide details attributes Show details attributes object
-
-
DISK
Hide disk attributes Show disk attributes object
-
Values are
green
,yellow
,red
, orunknown
.
-
-
REPOSITORY_INTEGRITY
Hide repository_integrity attributes Show repository_integrity attributes object
-
Values are
green
,yellow
,red
, orunknown
.
-
-
DATA_STREAM_LIFECYCLE
Hide data_stream_lifecycle attributes Show data_stream_lifecycle attributes object
-
Values are
green
,yellow
,red
, orunknown
.
-
-
ILM
Hide ilm attributes Show ilm attributes object
-
Values are
green
,yellow
,red
, orunknown
.
-
-
SLM
Hide slm attributes Show slm attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
Hide details attributes Show details attributes object
-
-
SHARDS_CAPACITY
Hide shards_capacity attributes Show shards_capacity attributes object
-
Values are
green
,yellow
,red
, orunknown
. -
Hide details attributes Show details attributes object
-
-
FILE_SETTINGS
Hide file_settings attributes Show file_settings attributes object
-
Values are
green
,yellow
,red
, orunknown
.
-
-
-
Values are
green
,yellow
,red
, orunknown
.
GET _health_report
resp = client.health_report()
const response = await client.healthReport();
response = client.health_report
$resp = $client->healthReport();
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_health_report"