Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

match (Syslog)

date_range 01-Jun-24

Syntax

content_copy zoom_out_map
match "regular-expression"; 

Hierarchy Level

content_copy zoom_out_map
[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.

footer-navigation