elasticsearchHow do I get a list of all indexes in Elasticsearch?
To get a list of all indexes in an Elasticsearch cluster, you can use the cat indices
API. This API provides a concise summary of the health of all indices in a cluster.
Example code
GET /_cat/indices?v
Example output:
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open test1 nHG_L0e3Qz-TnVHXV3dFVQ 5 1 0 0 4.3kb 4.3kb
Code explanation
GET
: The HTTP verb for the request./_cat/indices
: The path to the Elasticsearch endpoint for retrieving a list of indices.?v
: The query parameter for verbose output.
Helpful links
More of Elasticsearch
- How can I use Elasticsearch to diagnose "yellow" issues?
- How can I use YouTube to learn about Elasticsearch?
- How can I use Elasticsearch and ZFS together?
- How can I use Yandex Mirror to access Elasticsearch data?
- How do I set up an Elasticsearch Yum repository?
- How do I download Elasticsearch for Windows?
- How can I use Elasticsearch and Zabbix together for software development?
- How can I decide between using Elasticsearch and PostgreSQL for my software development project?
- How do I add synonyms to Elasticsearch?
- How do I set up an Elasticsearch watcher?
See more codes...