#收集配置
filebeat.prospectors:
- input_type: log
paths:
- /data/trade/app/tradeserver/logs/*.log
- /data/trade/app/scheduleserver/logs/*.log
- /data/trade/app/bankprocessor/logs/*.log
- /data/trade/app/orgmanageserver/logs/*.log
- /data/trade/app/manageserver/logs/*.log
include_lines: ["ERR", "WARN", "失败"]
# 定义type
document_type: app
# 输出设置
output.redis:
hosts: ["192.168.30.135"]
key: "tradeserver"
# 指定动作
input {
# 指定数据源
redis
{
# redis地址和端口
host => "172.20.10.17"
port => "6379"
# 数据类型
data_type => "list"
# 指定key
key => "sapp"
}
}