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

Filebeat 实战配置文件

时间:2018-08-16 19:54:35      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:mes   java   metrics   配置   agg   配置文件   lines   address   output   

filebeat.prospectors:

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.25/logs/message-router-app/console*log
      document_type: "java_access-message-router-app"
      fields:
      runtime_env: dev
      appname: message-router-app
      ip_address: 192.168.54.25

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.27/logs/aisp-account-api/console*log
      document_type: "java_access-aisp-account-api"
      fields:
      runtime_env: dev
      appname: aisp-account-api
      ip_address: 192.168.54.27

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.52/logs/iot-admin-app/console*log
      document_type: "java_access-iot-admin-app"
      fields:
      runtime_env: dev
      appname: iot-admin-app
      ip_address: 192.168.54.52

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.56/logs/mqtt-gateway-app/console*log
      document_type: "java_access-mqtt-gateway-app"
      fields:
      runtime_env: dev
      appname: mqtt-gateway-app
      ip_address: 192.168.54.56

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.57/logs/chehejia-service-cp-app/console*log
      document_type: "java_access-chehejia-service-cp-app"
      fields:
      runtime_env: dev
      appname: chehejia-service-cp-app
      ip_address: 192.168.54.57

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.58/logs/aisp-swagger-group/console*log
      document_type: "java_access-aisp-swagger-group"
      fields:
      runtime_env: dev
      appname: aisp-swagger-group
      ip_address: 192.168.54.58

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.60/logs/aisp-sso-api/console*log
      document_type: "java_access-aisp-sso-api"
      fields:
      runtime_env: dev
      appname: aisp-sso-api
      ip_address: 192.168.54.60

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.62/logs/chehejia-service-pcs-app/console*log
      document_type: "java_access-chehejia-service-pcs-app"
      fields:
      runtime_env: dev
      appname: chehejia-service-pcs-app
      ip_address: 192.168.54.62

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.63/logs/aisp-sso-service/console*log
      document_type: "java_access-aisp-sso-service"
      fields:
      runtime_env: dev
      appname: aisp-sso-service
      ip_address: 192.168.54.63

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.70/logs/aisp-user-service/console*log
      document_type: "java_access-aisp-user-service"
      fields:
      runtime_env: dev
      appname: aisp-user-service
      ip_address: 192.168.54.70

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.78/logs/aisp-common-service/console*log
      document_type: "java_access-aisp-common-service"
      fields:
      runtime_env: dev
      appname: aisp-common-service
      ip_address: 192.168.54.78

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after

  • input_type: log
    paths:

    • /home/data/logs/192.168.54.79/logs/iot-metrics-app/console*log
      document_type: "java_access-iot-metrics-app"
      fields:
      runtime_env: dev
      appname: iot-metrics-app
      ip_address: 192.168.54.79

    include_lines: ^([201|201)
    multiline.pattern: ^([201|201)
    multiline.negate: true
    multiline.match: after
    registry_file: /chj/data/filebeat/registry
    output.logstash:
    hosts: ["logstash-02:5514"]

Filebeat 实战配置文件

标签:mes   java   metrics   配置   agg   配置文件   lines   address   output   

原文地址:http://blog.51cto.com/breaklinux/2160863

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