# Not working for redis sorted\_set datatype in logstash 5.6.4

**URL:** <https://discuss.elastic.co/t/not-working-for-redis-sorted-set-datatype-in-logstash-5-6-4/107663>\
**Category:** Logstash\
**Created:** [November 15, 2017, 5:28am UTC](https://discuss.elastic.co/t/not-working-for-redis-sorted-set-datatype-in-logstash-5-6-4/107663 "2017-11-15T05:28:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samy\_Nathan](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Samy\_Nathan](https://discuss.elastic.co/u/Samy_Nathan)\
**Post date:** [November 15, 2017, 5:28am UTC](https://discuss.elastic.co/t/not-working-for-redis-sorted-set-datatype-in-logstash-5-6-4/107663/1 "2017-11-15T05:28:20Z")

</div>

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."}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 15, 2017, 7:09am UTC](https://discuss.elastic.co/t/not-working-for-redis-sorted-set-datatype-in-logstash-5-6-4/107663/2 "2017-11-15T07:09:28Z")

</div>

> This setting must be a ["list", "channel", "pattern\_channel"]  
> Expected one of ["list", "channel", "pattern\_channel"], got ["sorted\_set"]

Is this unclear?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 13, 2017, 7:09am UTC](https://discuss.elastic.co/t/not-working-for-redis-sorted-set-datatype-in-logstash-5-6-4/107663/3 "2017-12-13T07:09:34Z")

</div>

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