filebeat5.6.3配置

filebeat配置(线上使用)

filebeat.prospectors:
- input_type: log
paths:(第一个要采集的日志目录)
- /data/log4j_1/operationlog/operationlog.log
tags: ["ErpcoreWeb_46_log1"]
document_type: finance_tomcat-46_log

- input_type: log
paths:(第二个要采集的日志目录)
- /data/log4j_2/operationlog/operationlog.log
tags: ["ErpcoreWeb_46_log2"]
document_type: finance_tomcat-46_log1
#从文件尾部开始监控
tail_files: true

- input_type: log
paths:(第三个要采集的日志目录)
- /data/logs/catalina.out
tags: ["ErpcoreWeb_46_log-ERROR"]
document_type: finance_tomcat-46_log-ERROR

tail_files: true
multiline.pattern: '^java'
multiline.negate: true
multiline.match: after
multiline.timeout: 10s
multiline.max_lines: 25
#多行合并
#multiline.pattern: '^\['
#multiline.negate: true
#multiline.match: after
#multiline.timeout: 10s
#multiline.max_lines: 5

#exclude_lines: ['INFO','DEBUG']
#include_lines: ["ERROR", "WARN"]
output.logstash:
hosts: ["192.168.198.92:5044"]

posted @ 2018-10-27 14:06  木易-故事里的人  阅读(180)  评论(0编辑  收藏  举报