Match
Match filters can be used to select the log records to process. These filters have the same options and syntax as the syslog-ng flow match expressions.
Configuration
MatchExpr
and ([]MatchExpr, optional)
Default: -
not (*MatchExpr, optional)
Default: -
regexp (*RegexpMatchExpr, optional)
Default: -
or ([]MatchExpr, optional)
Default: -
Regexp Directive
Specify filtering rule. For details, see the AxoSyslog Core documentation
pattern (string, required)
Pattern expression to evaluate
Default: -
template (string, optional)
Specify a template of the record fields to match against.
Default: -
value (string, optional)
Specify a field name of the record to match against the value of.
Default: -
flags ([]string, optional)
Pattern flags
Default: -
type (string, optional)
Pattern type
Default: -
Example Regexp
filter configurations
Syslog-NG Config Result
log {
source(main_input);
filter {
match("^5\d\d$" value("first"));
};
destination(output_default_demo-output);
};
Last modified December 27, 2023: Version number bumps (00b4afd)