Skip to content
Alexander I.Grafov edited this page Sep 30, 2016 · 4 revisions

Filters

Each log record checked with a set of filters. If it pass all checks then it passed to the writer of the sink. There are filters described below maybe set for the sink.

The sink can accept arbitrary number of filters. Conditions for different filters chained with logical AND.

WithKey(key)

Filter passed if the key exists among the keys of the record. All other keys don't matter.

WithoutKey(key)

Filter passed if the key don't exists among the keys of the record.

WithValue(key, ...value)

Filter passed if the key has value equal to any of values from value list of the function. Filter passed if the key not exists in the record.

WithoutValue(key, ...value)

Filter passed if the key has any value not equal to any values from value list of the function. Filter passed if the key not exists in the record.

WithRange(key, from, to)

Filter passed if the value for the key is greater or equal than from or greater or equal than to. Filter passed if the key not exists in the record.

WithoutRange(key, from, to)

Filter passed if the value for the key is lesser than from or greater than to. Filter passed if the key not exists in the record.

FilterKey

TBD

FilterValue

TBD

Clone this wiki locally