Skip to content

Instantly share code, notes, and snippets.

@hemanth22
Forked from macghriogair/bash.sh
Created February 16, 2019 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hemanth22/4b817241f4337631e41fb5076026c2ea to your computer and use it in GitHub Desktop.
Save hemanth22/4b817241f4337631e41fb5076026c2ea to your computer and use it in GitHub Desktop.
[Elasticsearch stats] #elasticsearch #cat
curl localhost:9200/_stats | python -m json.tool
# specific indices only
curl localhost:9200/index1,index2/_stats | python -m json.tool
# CAT all indices pretty format
curl 'localhost:9200/_cat/indices?format=json&pretty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment