# Output to redis with a "sorted set" datatype

**URL:** <https://discuss.elastic.co/t/output-to-redis-with-a-sorted-set-datatype/308401>\
**Category:** Logstash\
**Created:** [June 28, 2022, 9:01pm UTC](https://discuss.elastic.co/t/output-to-redis-with-a-sorted-set-datatype/308401 "2022-06-28T21:01:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktomu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ktomu/32/3975_2.png) [@ktomu](https://discuss.elastic.co/u/ktomu)\
**Post date:** [June 28, 2022, 9:01pm UTC](https://discuss.elastic.co/t/output-to-redis-with-a-sorted-set-datatype/308401/1 "2022-06-28T21:01:02Z")

</div>

Hi, I wanna find a way to send output to redis with datatype as "sorted set" and in batch mode.  
As I see now, logstash supports only list and channel as a datatype.  
Is there any other way how to do it?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 28, 2022, 9:26pm UTC](https://discuss.elastic.co/t/output-to-redis-with-a-sorted-set-datatype/308401/2 "2022-06-28T21:26:43Z")

</div>

There is an unmerged [PR](https://github.com/logstash-plugins/logstash-output-redis/pull/46) to add ZSET support. Not sure if that would help you.

---

<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:** [July 26, 2022, 9:27pm UTC](https://discuss.elastic.co/t/output-to-redis-with-a-sorted-set-datatype/308401/3 "2022-07-26T21:27:30Z")

</div>

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