for multiline

filebeat.prospectors:
- input_type: log
  paths:
    - /data/logs/xx/*.log
  multiline.pattern: '^\['
  multiline.negate: true
  multiline.match: after

tags: ["xx"]

output.elasticsearch:
  hosts: ["192.168.0.166:9200"]

simple

filebeat.prospectors:
- input_type: log
  paths:
    - /var/log/*.log
  encoding: utf-8

output.elasticsearch:
  hosts: ["http://192.168.3.131:9200"]
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""