filebeat输出到kafka

1、编辑filebeat的配置文件

# cat filebeat.yml

filebeat.inputs:
- type: log
  enabled: true
  tail_files: true
  paths:
    - /data/www.example.com_clb_log

output.kafka:
  hosts: ["10.105.100.10:9092"]
  topic: "www.example.com"
原文地址:https://www.cnblogs.com/t-road/p/11274821.html