Single

Filebeat抓取日志

Filebeat to logstash

filebeat.prospectors:
- type: log
  enabled: true
  paths:
    - /usr/share/filebeat/logs/*/*.log
  fields:
    hostname: c00
output.logstash:
  hosts: ["hosts:5044"]
  enabled: true

Filebeat to es

filebeat.prospectors:
- type: log
  enabled: true
  paths:
    - /usr/share/filebeat/logs/*/*.log
  fields:
    hostname: c05
setup.template.name: "c05"
setup.template.pattern: "c05-*"
setup.dashboards.index: "c05-*"
output.elasticsearch:
  hosts: ["hosts:9200"]
  index: "c05-%{+yyyy.MM.dd}"
  enabled: true
setup.kibana:
  host: "hosts:5601"

暂无评论

发表评论