Reading data from redis server into logstash input


Greeting of the day!

I like know how to read values which are saved in redis-server under the key and I have an input setting like this:

input {
redis {
host => ""
# these settings should match the output of the agent
data_type => "list"
key => "Mneal"
codec => "json"
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "neal-redis-devicestbl-%{+YYYY.MM.dd}"
stdout {
codec => rubydebug

Next 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>}

ELK stack version: 7.2

Note: redis keys are in hash value but I like to know how to pass hash value via logstash?

Redis Cli - output for your reference:> keys *

  1. "Mneal"> type Mneal

Can you guys please help me here!

Many Thanks,

@andrewkroh: Can you please help me on this thread. :slight_smile: !

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