1、下载filebeat
https://www.elastic.co/downloads/beats/filebeat
2、配置input
filebeat.prospectors:
- input_type: log
paths:
- /data/dmp/openresty/logs/dmp_intf_*.log
3、配置output
#elasticsearch:
# hosts: ["localhost:9200"]
logstash:
hosts: ["10.1.5.65:5044"]
output.kafka:
hosts: ["datadev1:9092"]
topic: lxw1234
required_acks: 1