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"

 

posted @ 2019-07-31 10:49  道霖  阅读(6353)  评论(0编辑  收藏  举报