elasticsearch常用操作命令
查看版本
curl ip:port
查询索引
curl -XGET ‘http://127.0.0.1:9200/_cat/indices/?v’
删除索引
curl -XDELETE ‘http://127.0.0.1:9200/logstash-nginx_access_log-2018.02.2*’
查看集群状态
curl -XGET ‘http://127.0.0.1:9200/_cluster/health?pretty’
查看集群节点信息
curl -XGET ‘http://127.0.0.1:9200/_cat/nodes?v’
查看集群分片信息
curl -XGET http://127.0.0.1:9200/_cat/shards
查看集群进程信息
curl ‘127.0.0.1:9200/_nodes/process?pretty’
查看shards状态是unassign
curl -XGET http://127.0.0.1:9200/_cat/shards | grep UNASSIGNED
查看集群UNASSIGEN shards原因
curl http://127.0.0.1:9200/_cluster/allocation/explain?pretty
集群配置
curl http://127.0.0.1:9200/_cluster/settings?pretty
elasticsearch常用操作命令
最新推荐文章于 2024-07-13 20:48:19 发布