Difference between revisions of "ElasticSearch Cheat Sheet"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
$ curl -XDELETE http://localhost-0:9200/[index_name] | $ curl -XDELETE http://localhost-0:9200/[index_name] | ||
+ | |||
+ | '''Check Cluster Health''' | ||
+ | |||
+ | http://localhost:9200/_cluster/health | ||
+ | |||
+ | |||
+ | ''' Check Size Per Index''' | ||
+ | |||
+ | http://localhost:9200/_cat/indices?h=index,store.size&format=json&bytes=mb?s=store.size:desc |
Latest revision as of 07:17, 10 June 2022
List Index
$ curl http://localhost:9200/_cat/indices?v
List Aliases
$ curl http://localhost:9200/_aliases?pretty=true
Delete Index
$ curl -XDELETE http://localhost-0:9200/[index_name]
Check Cluster Health
http://localhost:9200/_cluster/health
Check Size Per Index
http://localhost:9200/_cat/indices?h=index,store.size&format=json&bytes=mb?s=store.size:desc