Skip to main content

check_field

Extracts the value of a field identified via dot path within messages (currently only JSON format is supported) and then tests the extracted value against a child condition.

# Common config fields, showing default values
check_field:
path: ""
condition: {}

Fields​

path​

A field path to check against the child condition.

Type: string
Default: ""

condition​

A child condition to test the field contents against.

Type: object
Default: {}

parts​

An optional array of message indexes of a batch that the condition should apply to. If left empty all messages are processed. This field is only applicable when batching messages at the input level.

Indexes can be negative, and if so the part will be selected from the end counting backwards starting from -1.

Type: array
Default: []