Difference between revisions of "ElasticSearch Cheat Sheet"
Jump to navigation
Jump to search
(Created page with "'''List Index''' $ curl http://localhost:9200/_cat/indices?v") |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
$ curl http://localhost:9200/_cat/indices?v | $ 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 | ||
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