Team,
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 => "127.0.0.1"
# 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:
127.0.0.1:6379> keys *
- "Mneal"
127.0.0.1:6379> type Mneal
hash
127.0.0.1:6379>
Can you guys please help me here!
Many Thanks,
Madhu