使用filebeat做實時輸出流,進行實時日志流分析,取消默認的Elasticsearch與kibana配置,filebeat 配置輸出到kafka,並不連接kibana 配置filebeat.yml文件
1.配置輸出到kafka
#================================ Outputs =====================================
# Configure what output to use when sending the data collected by the beat.
output.kafka:
enabled: true
hosts: ["localhost:9092"]
topic: ad-log
2.配置Dashboards 不連接kibana
#============================== Dashboards =====================================
# These settings control loading the sample dashboards to the Kibana index. Loading
# the dashboards is disabled by default and can be enabled either by setting the
# options here or by using the `setup` command.
setup.dashboards.enabled: false