Reading from redis server into logstash input


(Daulet) #1

Hi, I am new to logstash. How can I read values which are saved in redis-server under the key ":1:logstash"? if the type of ":1:logstash" is string.. I have an input setting like this:

redis {
host => "some_redis_server"
key => ":1:logstash"
data_type => "list"
codec => json
type => "redis"
tags => ["redis"]
}

and when I run logstash it gives me an error: [logstash.inputs.redis ] Redis connection problem {:exception=>#<Redis::CommandError: ERR Error running script (call to some_value): @user_script:2: WRONGTYPE Operation against a key holding the wrong kind of value>}


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.