suffix

suffix #

KindAccepts
Value operatorexactly one field/suffix pair

Tests whether a string field ends with a given suffix. Accepts exactly one field.

Parameters #

ParameterTypeDescription
field namestringThe suffix the field must end with.

Examples #

suffix:
  filename: ".log"

Notes #

Inside a per-record sub-chain (e.g. for_each), field names resolve against the current record’s own attributes (file.path, log_level, …); at pipeline level they resolve against the pipeline context through the _ctx. prefix. See the Conditions reference for details.

Edit Edit this page