Executes a JMESPath query on JSON payloads, expecting a boolean result. If the result of the query is true then the condition passes, otherwise it does not.
# Common config fields, showing default valuesjmespath:query: ""
Please refer to the JMESPath website for information and tutorials regarding the syntax of expressions.
A JMESPath query.
# Examplesquery: foo == 'bar'query: length(doc.urls) > `0`
The index of a message within a batch to test the condition against. 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.
With the following config:
jmespath:query: a == 'foo'
If the initial jmespaths of part 0 were:
Then the condition would pass.
JMESPath is traditionally used for mutating JSON, in order to do this please
instead use the