所有索引 curl -XGET 'http://localhost:9200/_cat/indices/*?v'
删除索引 curl -XDELETE 'http://127.0.0.1:9200/winlogbeat-2016*'
curl -XDELETE 'http://127.0.0.1:9200/winlogbeat-2017.07.20'
查看线程资源 curl http://127.0.0.1:9200/_nodes/hot_threads
集群状态 curl -XGET 'http://localhost:9200/_cluster/stats?human&pretty'
进程状态 curl -XGET http://127.0.0.1:9200/_nodes/stats/thread_pool?pretty
集群参数 curl -XGET http://127.0.0.1:9200/_cluster/settings
索引参数 curl -XGET http://127.0.0.1:9200/logstash-nginx-access-2017.10.26/_settings
集群配置
egrep -v "^#|^$" /etc/elasticsearch/elasticsearch.yml
cluster.name: es1 #集群名字 要一致
node.name: node-1 # 节点名字,不能重复
network.host: 0.0.0.0
path.data: /data/elasticsearch/
http.port: 9200
discovery.zen.ping.multicast.enabled: false ##关闭组播
discovery.zen.ping.unicast.hosts: ["10.51.48.109", "10.171.32.72"] # #单播发现地址 自己的和其他节点的