# Logstash with redis server

**URL:** <https://discuss.elastic.co/t/logstash-with-redis-server/76464>\
**Category:** Logstash\
**Created:** [February 25, 2017, 6:04am UTC](https://discuss.elastic.co/t/logstash-with-redis-server/76464 "2017-02-25T06:04:48Z")\
**Posts on this page:** 5\
**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 25, 2017, 6:04am UTC](https://discuss.elastic.co/t/logstash-with-redis-server/76464/1 "2017-02-25T06:04:48Z")

</div>

Hi, can I use input from redis server on logstash 5.2, where received input passed to redis server from logstash 2.4?

```
logstash2.4 --> redis output--> redis-server --> logstash5.2 input?
```

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 25, 2017, 6:16am UTC](https://discuss.elastic.co/t/logstash-with-redis-server/76464/2 "2017-02-25T06:16:15Z")

</div>

Yes. The event structure is the same.

---

<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 25, 2017, 6:29am UTC](https://discuss.elastic.co/t/logstash-with-redis-server/76464/3 "2017-02-25T06:29:59Z")

</div>

Thanks for your reply, is it okay if I read from redis server with version logstash5.2 with a config below?  
`input{ redis { host => "redis.host" port => redis.port key => "logstash_searchlog" data_type => "list" codec => "json" type => "redis_input" } }`

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 25, 2017, 4:18pm UTC](https://discuss.elastic.co/t/logstash-with-redis-server/76464/4 "2017-02-25T16:18:28Z")

</div>

Sure, if you sent to the same `key`, then that should work to pull it back out.

---

<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 25, 2017, 4:18pm UTC](https://discuss.elastic.co/t/logstash-with-redis-server/76464/5 "2017-03-25T16:18:31Z")

</div>

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