View the cluster's health status curl -XGET HTTP: // 192.168.1.93:9200/_cat/health?v query all nodes curl -XGET HTTP: // 192.168.1.93:9200/_cat/nodes?v query all indexes curl HTTP -XGET: // 192.168.1.93:9200/_cat/indices?v count the number of documents in the index information es
curl -XGET 'http://192.168.1.93:9200/_cat/count'
The number of documents under an index of statistical information
curl -XGET 'http://192.168.1.93:9200/_cat/count/api-core-2015.12.31' view a class index curl -XGET ' http://192.168.1.93:9200/_cat/indices/api ? -core - * Pretty ' view an index of health status curl -s HTTP: // 192.168.1.93:9200/_cat/indices/IndexName?h=status see all index closed curl -XGET HTTP: // 192.168. 1.93: 9200 / _cat / indices | awk '$ 1 == "close"' to open a closed index curl -X POST " 192.168.1.93:9200/api-core-2019.08.16/_open?pretty " delete an index curl -XDELETE ' http://192.168.1.93:9200/api-core-2019.08.11 ' delete certain types of indexes curl-XDELETE 'http://192.168.1.93:9200/api-core-*'
View the health status of an index
See all the indexes closed
Open a closed index
View some sort of index
View the health status of a cluster
Each command supports the use of? V parameter to display detailed information
/_cat/allocation /_cat/shards /_cat/shards/{index} /_cat/master /_cat/nodes /_cat/indices /_cat/indices/{index} /_cat/segments /_cat/segments/{index} /_cat/count /_cat/count/{index} /_cat/recovery /_cat/recovery/{index} /_cat/health /_cat/pending_tasks /_cat/aliases /_cat/aliases/{alias} /_cat/thread_pool /_cat/plugins /_cat/fielddata /_cat/fielddata/{fields} /_cat/nodeattrs /_cat/repositories /_cat/snapshots/{repository}