# Import data from redis

**URL:** <https://discuss.elastic.co/t/import-data-from-redis/129489>\
**Category:** Logstash\
**Created:** [April 25, 2018, 12:40pm UTC](https://discuss.elastic.co/t/import-data-from-redis/129489 "2018-04-25T12:40:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brfreitas](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@brfreitas](https://discuss.elastic.co/u/brfreitas)\
**Post date:** [April 25, 2018, 12:40pm UTC](https://discuss.elastic.co/t/import-data-from-redis/129489/1 "2018-04-25T12:40:09Z")

</div>

Hello folks,

I'm new using ELK, I wanna know what is the best approach to import all redis keys and values to elastisearch with logstash.

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [April 26, 2018, 10:59pm UTC](https://discuss.elastic.co/t/import-data-from-redis/129489/2 "2018-04-26T22:59:30Z")

</div>

This can be a bit tricky, because in Redis each key can have its own data type, and we need to use specific commands with each data type to get the value out. What does your existing structure look like? If you're using string values (which can be read with the redis `GET` command), do you have any encoding layers? (e.g., JSON and/or gzip)?

---

<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:** [May 24, 2018, 10:59pm UTC](https://discuss.elastic.co/t/import-data-from-redis/129489/3 "2018-05-24T22:59:39Z")

</div>

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