Curl elasticsearch
2019-03-26 15:04 divl 阅读(339) 评论(0) 编辑 收藏 举报1. 查看cluster state
curl localhost:9200/_cluster/health?pretty Or curl localhost:9200/_cluster/health | jq .
2. 只查看某字段
curl localhost:9200/_nodes/stats/process?filter_path=**.max_file_descriptors | jq .
3. 查看index
curl -XGET "http://localhost:9200/_cat/indices"
4.查看type
curl -XGET "http://localhost:9200/.monitoring-es-6-2019.03.27/
5. 查看id
curl -XGET "http://localhost:9200/.monitoring-es-6-2019.03.27/_search"
7. 查看id存储的内容
curl -XGET "http://localhost:9200/.monitoring-es-6-2019.03.27/doc/_AfUvGkBMaZdBCqXemc_"
8. 删除index
curl -X DELETE elasticsearch.oohome.net:9200/logstat-test1