码迷,mamicode.com
首页 > 其他好文 > 详细

filebeat 多topic设置

时间:2017-10-19 19:55:46      阅读:323      评论:0      收藏:0      [点我收藏+]

标签:div   pat   manager   service   hosts   document   logs   lin   match   

 

 

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设置

标签:div   pat   manager   service   hosts   document   logs   lin   match   

原文地址:http://www.cnblogs.com/linkenpark/p/7694159.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!