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
| #拉取完成之后,先不着急启动,在启动之前需要完成先建立一份映射的配置文件filebeat.docker.yml,选择目录创建filebeat.docker.yml #=========================== Filebeat inputs ============== filebeat.inputs:
- type: log
enabled: true # paths: - /data/logs/*.log
# multiline.pattern: '^\d{4}-\d{2}-\d{2}' multiline.negate: true multiline.match: after
#-------------------------- Kibana ---------
# setup.kibana.host: "http://172.16.10.xxx:5601" setup.dashboards.enabled: true
#-------------------------- Elasticsearch output --------- output.elasticsearch: hosts: ["http://172.16.10.xxx:9200"] index: "filebeat-%{+yyyy.MM.dd}"
setup.template.name: "my-log" setup.template.pattern: "my-log-*" json.keys_under_root: false json.overwrite_keys: true # processors: - decode_json_fields: fields: [""] target: json
|