filebeat 多topic設置
阿新 • • 發佈:2017-10-19
type multi path fields led ble log data --
cat filebeat.yml output.kafka: enabled: true hosts: ["192.168.111.107:9092","192.168.111.108:9092","192.168.111.109:9092"] topic: ‘%{[type]}‘ filebeat.prospectors: #------------------------------ Log prospector -------------------------------- - paths: - /data/logs/financial-manager/server0.log fields: app_id: financial-manager document_type: log-log4j multiline.pattern: ‘^[0-9]{4}-[0-9]{2}-[0-9]{2}\s(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d\.‘ multiline.negate: true multiline.match: after - paths: - /data/logs/user-service/*.log fields: app_id: user-service document_type: log-log4j multiline.pattern: ‘^[0-9]{4}-[0-9]{2}-[0-9]{2}\s(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d\.‘ multiline.negate: true multiline.match: after - paths: - /data/logs/financial-manager/access_log.log fields: app_id: financial-manager document_type: log-undertow
filebeat 多topic設置