Retains a percentage of message batches deterministically by hashing selected messages and checking the hash against a valid range, dropping all others.
hash_sample:retain_min: 0retain_max: 10
For example, setting
results in dropping half of the input stream, and setting
100.1 will drop the other half.
In order to sample individual messages of a batch use this processor with the
number The lower percentage of the sample range.
number The upper percentage of the sample range.
array An array of message indexes within the batch to sample based on. If left empty all messages included. This field is only applicable when batching messages at the input level.