batching
configuration block this means it benefits from batching and requires you to specify how you’d like your batches to be formed by configuring a batching policy:
batching
configuration block.
Sometimes you may prefer to create your batches before processing in order to benefit from batch wide processing, in which case if your input doesn’t already support a batch policy you can instead use a broker, which also allows you to combine inputs with a single batch policy:
.tar.gz
archives:
batching
that means it supports a batch policy. This is a mechanism that allows you to configure exactly how your batching should work on messages before they are routed to the input or output it’s associated with. Batches are considered complete and will be flushed downstream when either of the following conditions are met:
byte_size
field is non-zero and the total size of the batch in bytes matches or exceeds it (disregarding metadata.)count
field is non-zero and the total number of messages in the batch matches or exceeds it.true
.period
field is non-empty and the time since the last batch exceeds its value.processors
which allows you to define an optional list of processors to apply to each batch before it is flushed. This is a good place to aggregate or archive the batch into a compatible format for an output: