Redis output plugin batch behavior


(Bruno Lavoie) #1

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


(system) #2