match-strings
Syntax
match-strings [match-strings];
match-strings [string1 string2];
Hierarchy Level
[edit system syslog file name], [edit system syslog host name], [edit system syslog user name]
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.
|
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.