Number

Number

This filter allows you to treat a string from the input Message as numeric value and apply some operator on it (for example, check if this field contains a number greater than X).

Parameters

ParameterTypeDefaultDescription
targetSTRING“main”the field of the Message that should be used for the filter (it could be main or and extra field)
opSTRING""Compare operator to use for the numeric value (">", “>=”, “<”, “<=”, “!=”, “==")
valueSTRING"”It has to be a numeric value and it is the number to use for the comparison
... | number(target="num_field", op=">=", value="44") | ...

Output

If the comparison is verified the received Message will be propagated.

Examples