WARNING: Version 0.90 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Cluster State
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Cluster State
editThe cluster state API allows to get a comprehensive state information of the whole cluster.
$ curl -XGET 'http://localhost:9200/_cluster/state'
By default, the cluster state request is routed to the master node, to
ensure that the latest cluster state is returned.
For debugging purposes, you can retrieve the cluster state local to a
particular node by adding local=true to the query string.
Response Filters
editIt is possible to filter the cluster state response using the following REST parameters:
-
filter_nodes -
Set to
trueto filter out thenodespart of the response. -
filter_routing_table -
Set to
trueto filter out therouting_tablepart of the response. -
filter_metadata -
Set to
trueto filter out themetadatapart of the response. -
filter_blocks -
Set to
trueto filter out theblockspart of the response. -
filter_indices - When not filtering metadata, a comma separated list of indices to include in the response.
Example follows:
$ curl -XGET 'http://localhost:9200/_cluster/state?filter_nodes=true'