match (Syslog)
Syntax
match "regular-expression";
Hierarchy Level
[edit logical-systems logical-system-name system syslog file filename], [edit logical-systems logical-system-name system syslog user (username | *)], [edit system syslog file filename], [edit system syslog host hostname | other-routing-engine| scc-master)], [edit system syslog user (username | *)]
Description
Specify a text string that must (or must not) appear in a message for the message to be logged to a destination.
If you configure both the match
and match-strings
statements for the same destination, Junos OS evaluates the match-strings
condition first, and if the condition is satisfied,
then the message is logged and the match
condition is not
evaluated. If the condition in the match-strings
statement
is not satisfied, then the system evaluates the regular expression
in the match
configuration statement.
Options
regular-expression | Regular expression against which to match messages to log. The regular expressions must use the notation defined in POSIX Standard 1003.2 for extended (modern) UNIX regular expressions and must not contain a slash ( / ) or a percent sign ( % ). |
Required Privilege Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.