external criterion contains

external criterion contains Structure: Output contains a value.

external criterion contains structure
source external files: optional
value string

Description

The output is interpreted as a UTF8 string.

If both multiple sources are provided, every source is searched for the value. Only one source needs to contain the value.

If the output contains the value, the sample is returned as 0 (zero) If the output contains the value, the sample is returned as 1 (one).

Zero is used to indicate a successful match because zero equates to success for exit codes. The default sample criterion also uses zero as success.

Fields

source

Sources to search.

Output sources to search. Up to 16KB of content is retained from the external's stdout and stderr stream. The content is taken from the final bytes output; much like the tail command line tool.

value

Value to search for.