input {
redis {
host => "192.168.1.202"
port => "6379"
db => "0"
password => "123456"
data_type => "list"
key => "filebeat"
}
}
output {
filter {
if [key] == "filebeat" {
stdout {
codec=>rubydebug{}
}
}
}
}
为什么会收集不到信息,是不是我的判断语法有问题,如果我把判断语法去掉就能出信息了。求助大神!
redis {
host => "192.168.1.202"
port => "6379"
db => "0"
password => "123456"
data_type => "list"
key => "filebeat"
}
}
output {
filter {
if [key] == "filebeat" {
stdout {
codec=>rubydebug{}
}
}
}
}
为什么会收集不到信息,是不是我的判断语法有问题,如果我把判断语法去掉就能出信息了。求助大神!
2 个回复
rochy - rochy_he
赞同来自: sunjj
sunjj - 天不怕地不怕,就怕写代码!
赞同来自: