vi /etc/filebeat/filebeat.yaml
kibana地址:
host: "192.168.2.29:5601"
配置log地址
- type: log
# Change to true to enable this prospector configuration.
# enabled: false
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /home/server/out.log
配置es地址和索引名字
setup.template.name: "gateway"
setup.template.pattern: "gateway-*"
setup.dashboards.index: "gateway-*"
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["192.168.2.29:9200"]
index: "gateway-%{+yyyy.MM.dd}"