-
Notifications
You must be signed in to change notification settings - Fork 2
/
es2.yml
42 lines (32 loc) · 1.53 KB
/
es2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ---------------------------------- Cluster -----------------------------------
cluster.name: elk4devops
# ------------------------------------ Node ------------------------------------
node.name: es2
# ----------------------------------- Paths ------------------------------------
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
# ---------------------------------- Network -----------------------------------
network.host: es2.zenlab.local
# --------------------------------- Discovery ----------------------------------
cluster.initial_master_nodes: ["es1"]
discovery.seed_hosts: ["es1.zenlab.local"]
# ------------------------------- TLS and Cert ---------------------------------
#启用用户名和密码认证
xpack.security.enabled: true
#启用 ES 集群内加密传输
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.certificate_authorities: ca.crt
xpack.security.transport.ssl.key: ${node.name}.key
xpack.security.transport.ssl.certificate: ${node.name}.crt
#启用 ES 集群客户端访问加密
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.certificate_authorities: ca.crt
xpack.security.http.ssl.key: ${node.name}.key
xpack.security.http.ssl.certificate: ${node.name}.crt
# For Elastic Agent
xpack.security.authc.api_key.enabled: true
#启用监控数据收集
xpack.monitoring.collection.enabled: true
# ------------------------------- App Search ---------------------------------
#提前为 App Search 做好准备
action.auto_create_index: ".app-search-*-logs-*,-.app-search-*,+*"