# Reading from redis server into logstash input

**URL:** <https://discuss.elastic.co/t/reading-from-redis-server-into-logstash-input/74060>\
**Category:** Logstash\
**Created:** [February 6, 2017, 1:44pm UTC](https://discuss.elastic.co/t/reading-from-redis-server-into-logstash-input/74060 "2017-02-06T13:44:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daaakeee](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@daaakeee](https://discuss.elastic.co/u/daaakeee)\
**Post date:** [February 6, 2017, 1:44pm UTC](https://discuss.elastic.co/t/reading-from-redis-server-into-logstash-input/74060/1 "2017-02-06T13:44:04Z")

</div>

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

---

<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:** [March 6, 2017, 1:44pm UTC](https://discuss.elastic.co/t/reading-from-redis-server-into-logstash-input/74060/2 "2017-03-06T13:44:48Z")

</div>

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