Evaluates an arbitrary expression as a boolean value and filters events when the expression returns true.

ParameterTypeRequiredDefaultDescription
expressionexpressiontrue The expression to test. [a]

[a] When you provide only one parameter, the implied parameter is expression

Examples

The following tests if the value of the field foo is less than the value of the field bar:

humio
test(foo < bar)

This example compares a field value within the Humio repository:

humio
test(cputime < 7500)