1.节点服务器配置

Master: 10.10.10.46
Slave1:10.10.10.53
Slave2:10.10.10.49

2.Master节点配置

Cluster:集群名称修改
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name:  YZYX-xianwei

Node:修改节点名
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: master-46
#
# Add custom attributes to the node:
#
#node.attr.rack: r1

Paths:修改数据及日志目录
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /usr/local/elk/data
#
# Path to log files:
#
path.logs: /usr/local/elk/log

Discovery:定义ES角色(Master/slave); 配置单播hosts
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
node.master: true
node.data: true
#discovery.zen.ping.unicast.hosts: ["10.10.10.46", "10.10.10.53","10.10.10.49"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
#
#discovery.zen.minimum_master_nodes:
#
# For more information, consult the zen discovery module documentation.
discovery.zen.ping_timeout: 10s
discovery.zen.minimum_master_nodes: 3

3.查看集群状态

http://10.10.10.46:9200/_cluster/health?pretty

4.查看单节点状态

http://10.10.10.49:9200/

5.查看节点列表

http://10.10.10.49:9200/_cat/nodes?v

6.查看所有索引

http://10.10.10.49:9200/_cat/indices?v