我使用elk+redis+filebeat来构建日志记录平台,现在在redis被codis取代之后,logstash报告:
# [2020-06-18T11:20:54,146][WARN ][logstash.inputs.redis] Redis connection problem {:exception=>#<Redis::CommandError: ERR handle request, command'BLPOP' is not allowed>}
# [2020-06-18T11:19:12,920][WARN ][logstash.inputs.redis] Redis connection problem {:exception=>#<Redis::CommandError: ERR max number of clients reached>}strong text这是我的logstash配置:
input {
redis {
data_type => "list"
key => "elk"
host => "192.168.124.224"
port => "19000"
batch_count => "1"
threads => 5
codec => "json"
}
}
output {
if [fields][log_type] == "php" {
elasticsearch {
hosts => ["192.168.124.225:9200"]
index => "php-%{+YYYY.MM.dd}"
action => "index"
}
}
}发布于 2020-06-18 18:44:34
Codis提到它们100%与双代理兼容。根据双代理文档不支持BLPOP命令。因为logstash Redis输入插件将BLPOP描述为一个必需的函数,这告诉我Codis根本不能与Logstash一起使用。
https://serverfault.com/questions/1021964
复制相似问题