RegExp¶
This filter rejects or accepts messages based on regular expressions.
Parameters¶
FilterExpression
Messages matching this expression are passed on. This parameter is ignored when set to “”. FilterExpression is checked after FilterExpressionNot. By default this parameter is set to “”.
FilterExpressionNot
Messages not matching this expression are passed on. This parameter is ignored when set to “”. FilterExpressionNot is checked before FilterExpression. By default this parameter is set to “”.
ApplyTo
Defines which part of the message the filter is applied to. When set to “”, this filter is applied to the message’s payload. All other values denotes a metadata key. By default this parameter is set to “”.
Parameters (from core.SimpleFilter)¶
FilteredStream
This value defines the stream filtered messages get sent to. You can disable this behavior by setting the value to “”. By default this parameter is set to “”.
Examples¶
This example accepts only accesslog entries with a return status of 2xx or 3xx not originated from staging systems.
ExampleConsumer:
Type: consumer.Console
Streams: console
Modulators:
- filter.RegExp:
FilterExpressionNot: " stage\\."
FilterExpression: "HTTP/1\\.1\\\" [23]\\d\\d"