# Redis output plugin batch behavior

**URL:** <https://discuss.elastic.co/t/redis-output-plugin-batch-behavior/40655>\
**Category:** Logstash\
**Created:** [February 1, 2016, 5:35pm UTC](https://discuss.elastic.co/t/redis-output-plugin-batch-behavior/40655 "2016-02-01T17:35:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Lavoie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bruno_lavoie/32/8408_2.png) [@Bruno\_Lavoie](https://discuss.elastic.co/u/Bruno_Lavoie)\
**Post date:** [February 1, 2016, 5:35pm UTC](https://discuss.elastic.co/t/redis-output-plugin-batch-behavior/40655/1 "2016-02-01T17:35:14Z")

</div>

Hello,

If we use redis output and enable batch output with a specified size and dynamic list name like this:

```
output {
    redis {
        host => "127.0.0.1"
        data_type => "list"
        key => "%{redis}"
        
        batch => true # default: false
        batch_events => 100 # default: 50
        batch_timeout => 5 # default: 5
    }
}

```

Given the fact we use dynamic list names, when will the buffer will be flushed?

- When a specific list reach the specified number (100 in our case)?

- Or, when the specified number is reached over all the existing lists?

Simply put, there is one buffer per list or an overall one?

Thanks  
Bruno Lavoie

---

<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 6, 2017, 5:12am UTC](https://discuss.elastic.co/t/redis-output-plugin-batch-behavior/40655/2 "2017-07-06T05:12:55Z")

</div>


