此配置仅用于nginx、message等单行日志;
从文件中读取内容写入到redis中;
filebeat.inputs:
- type: log
paths:
- /data/nginx/log/access.log
tags: ["nginx"]
fields:
type: nginx
fields_under_root: true
output.redis:
hosts: ["192.168.1.180"]
key: "nginx-access-log"
datatype: list
转载于:https://blog.51cto.com/liuzhengwei521/2149965