# Advantages of using redis

**URL:** <https://discuss.elastic.co/t/advantages-of-using-redis/279216>\
**Category:** Logstash\
**Created:** [July 21, 2021, 3:08am UTC](https://discuss.elastic.co/t/advantages-of-using-redis/279216 "2021-07-21T03:08:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111387](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111387/32/75408_2.png) [@111387](https://discuss.elastic.co/u/111387)\
**Post date:** [July 21, 2021, 3:08am UTC](https://discuss.elastic.co/t/advantages-of-using-redis/279216/1 "2021-07-21T03:08:29Z")

</div>

Look at some documentation when building the ELK.  
Sometimes install Redis in front of Logstash.

Even though Logstash provides a buffer, is there any advantage to installing Logstash in front?

If Redis is present but not, but Elasticsearch does not receive logs, the logs are left in a queue or buffer.

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [July 22, 2021, 1:58pm UTC](https://discuss.elastic.co/t/advantages-of-using-redis/279216/2 "2021-07-22T13:58:49Z")

</div>

You can manually enable persistent queues in logstash if you want logstash to hang on to messages before they are processed or if you think that there could be a communication problem with the output of logstash.  
Read this article for reference:

> **[Persistent Queues | Logstash Reference \[7.13\] | Elastic](https://www.elastic.co/guide/en/logstash/current/persistent-queues.html)**

---

<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:** [August 19, 2021, 1:59pm UTC](https://discuss.elastic.co/t/advantages-of-using-redis/279216/3 "2021-08-19T13:59:16Z")

</div>

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