ES and delete the index query

postman

1. Check the status es

get http://127.0.0.1:9200/_cat/health

Red indicates data is not available, yellow means data is available, a copy of part not allocated, green means everything is normal

2. Check all indexes

        get http://127.0.0.1:9200/_cat/indices?v'get 

 

3. To delete an index

delete http://127.0.0.1:9200/ (index name)

delete http://127.0.0.1:9200/cybereye_alarmlog_20170110 delete the index named cybereye_alarmlog_20170110

 

4. query data from the index

get http://127.0.0.1:9200/cybereye_alarmlog_20170110/_search query all the data from the index named cybereye_alarmlog_20170110

Guess you like

Origin www.cnblogs.com/linuxws/p/12005372.html