Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

match-strings

Syntax

Hierarchy Level

Description

Specify a text substring that must appear in a message that is logged to a destination. If multiple strings are configured, the message is logged to the given destination if any of the substrings are matched.

The match-strings statement performs a simple string comparison, and as a result, it is less CPU-intensive than using the match statement to match against complex regular expressions. If you configure both the match and match-strings statements for the same destination, Junos OS evaluates the match-strings condition first; if the message includes any of the configured substrings, then the message is logged and the match condition is not evaluated. If the match-strings condition is not satisfied, then the system evaluates the message against the regular expression in the match configuration statement.

Options

string

String or list of strings against which to match messages to log.

  • Range: 1 through 50 strings

  • Range: 1 through 1020 characters per string

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 16.1.