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"