Redis output plugin batch behavior


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

output {
    redis {
        host      => ""
        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?

Bruno Lavoie