# Using redis read replica in logstash input configuration

**URL:** <https://discuss.elastic.co/t/using-redis-read-replica-in-logstash-input-configuration/289182>\
**Category:** Logstash\
**Created:** [November 15, 2021, 10:28am UTC](https://discuss.elastic.co/t/using-redis-read-replica-in-logstash-input-configuration/289182 "2021-11-15T10:28:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdere1](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@vdere1](https://discuss.elastic.co/u/vdere1)\
**Post date:** [November 15, 2021, 10:28am UTC](https://discuss.elastic.co/t/using-redis-read-replica-in-logstash-input-configuration/289182/1 "2021-11-15T10:28:38Z")

</div>

Hello,

I am having a throttling issue on redis which could be due to the usage of just the primary endpoint to collect the logs from redis using logstash input configuration.

Is it possible to use the redis read replica endpoint in the logstash input configuration to ingest the logs from redis?  
When the logs are collected by logstash from redis does it execute a number of getTypeCmds or setTypeCmds ?  
I have the same input configuration(mentioned below) on around 18 instances configured with logstash which all point to the same redis primary endpoint to ingest the logs. The read replica remains unused.

```auto
input {
    redis {
        host => "redis1.asdas.ng.0000.use1.cache.amazonaws.com"
        port => "6379"
        data_type => "list"
        key => "demo1"
        threads => 32
        batch_count => 2048
    }
}

```

Any thoughts?

---

<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:** [December 13, 2021, 10:29am UTC](https://discuss.elastic.co/t/using-redis-read-replica-in-logstash-input-configuration/289182/2 "2021-12-13T10:29:40Z")

</div>

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