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
原文:http://blog.51cto.com/liuzhengwei521/2149965