I'm using python ES client and I would like to query stats about indexes. More concretely, I'm looking for this endpoint:
GET /_stats
Does anyone know how to use the IndicesClient class mentioned in the docs?
Try:
from elasticsearch import Elasticsearch
es = Elasticsearch("localhost:9200")
es.indices.stats(index=<your_index_name>)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With