Not working for redis sorted_set datatype in logstash 5.6.4

created logstashredis.conf file

input {
redis {
host => "localhost"
type => "redis-input"
data_type => "sorted_set"
key => "logstash"
# We use json_event here since the sender is a logstash agent
codec => json
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "logstash"
document_type => "redis_logs"
}
stdout { codec => rubydebug }
}


Run :
bin/logstash -f logstashredis.conf

Got Error :

[2017-11-15T10:57:30,634][ERROR][logstash.inputs.redis ] Invalid setting for redis input plugin:

input {
redis {
# This setting must be a ["list", "channel", "pattern_channel"]
# Expected one of ["list", "channel", "pattern_channel"], got ["sorted_set"]
data_type => "sorted_set"
...
}
}
[2017-11-15T10:57:30,644][ERROR][logstash.agent ] Cannot create pipeline {:reason=>"Something is wrong with your configuration."}

This setting must be a ["list", "channel", "pattern_channel"]
Expected one of ["list", "channel", "pattern_channel"], got ["sorted_set"]

Is this unclear?

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