I used elk+redis+filebeat to build the logging platform, and now after redis is replaced by codis, logstash reports:

# [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

This is my logstash configuration:


input {
  redis {
     data_type => "list"
     key => "elk"
     host => ""
     port => "19000"
     batch_count => "1"
     threads => 5
     codec => "json"

output {
    if [fields][log_type] == "php" {
          elasticsearch {
                hosts => [""]
                index => "php-%{+YYYY.MM.dd}"
                action =>  "index"
  • Aren't the errors clear enough? Have you tried a redis-cli to check whether the commands are in fact forbidden? Have you looked at the number of clients connected? This question lacks quite a bit of research as it stands... Jun 18 '20 at 6:43

Codis mentions they are 100% compatible with twemproxy. according to the twemproxy documentation the BLPOP command is not supported. Because the logstash Redis input plugin describes BLPOP as a required function, this tells me that Codis can't be used with Logstash at all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.