Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

match

Syntax

Hierarchy Level

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.