My configuration:
## The input config
filebeat.inputs:
- type: log
enabled: true
paths:
- /data/logs_backup/baccarat/gate/gate.log
fields:
document_type: baccarat_gatelog
fields_under_root: true
- type: log
enabled: true
paths:
- /data/logs_backup/baccarat/room/room.log
fields:
document_type: baccarat_roomlog
fields_under_root: true
## And Output config
#-------------------------- Redis output ------------------------------
output.redis:
hosts: ["127.0.0.1"]
port: 6379
datatype: list
keys:
- key: "baccarat_gate"
when.contains:
document_type: "baccarat_gatelog"
- key: "baccarat_room"
when.contains:
document_type: "baccarat_roomlog"
When i use 【keys】field,filebeat start failed。And when comment out the configuration for keys,filebeat start OK!
Can someone tell me what error for my config?Must need 【mappings】field?
Thanks!