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:
/usr/local/elk/logstash/config/logstash_es.conf
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"
}
}
}