Match
Match filters can be used to select the log records to process. These filters have the same options and syntax as syslog-ng flow match expressions. When matching for labels or annotations, the available labels and annotations depend on the incoming message received from the log collector agent. See this list of common Kubernetes labels and annotations for details.
Configuration
MatchExpr
and ([]MatchExpr, optional)
not (*MatchExpr, optional)
or ([]MatchExpr, optional)
regexp (*RegexpMatchExpr, optional)
Regexp Directive
Specify filtering rule. For details, see the AxoSyslog Core documentation
flags ([]string, optional)
Pattern flags. For details, see the AxoSyslog Core documentation
pattern (string, required)
Pattern expression to evaluate
template (string, optional)
Specify a template of the record fields to match against.
type (string, optional)
Pattern type. For details, see the AxoSyslog Core documentation
value (string, optional)
Specify a field name of the record to match against the value of.
Example Regexp
filter configurations
syslog-ng config result:
Last modified February 25, 2025: Merge pull request #273 from kube-logging/dependabot/github_actions/actions/setup-node-4.2.0 (e25e1fb)