filebeat.yml配置
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- type: log
fields:
source: base
setup.ilm.enabled: false
setup.template.overwrite: true
setup.template.name: "filebeat"
setup.template.pattern: "filebeat-*"
setup.template.enabled: true
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["127.0.0.1:9200"]
index: "test-%{[fields.source]}-*"
indices:
- index: "test-base-%{+yyyy.MM.dd}-00001"
when.equals:
fields.source: "base"