match
语法
match "regular-expression";
层次结构级别
[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 | *)]
描述
指定必须(或不得)出现在消息中的文本字符串,以便将消息记录到目标。
如果为同一目标同时配置了 and match
match-strings
语句,Junos OS 将 match-strings
首先评估条件,如果满足条件,则会记录消息,而不 match
评估条件。如果不满足语句中的 match-strings
条件,则系统会计算配置语句中的 match
正则表达式。
选项
regular-expression | 用于匹配要记录的消息的正则表达式。 正则表达式必须使用 POSIX 标准 1003.2 中定义的表示法用于扩展(现代)UNIX 正则表达式,并且不得包含斜杠 ( / ) 或百分号 ( % )。 |
所需权限级别
system - 在配置中查看此语句。
系统控制 - 将此语句添加到配置中。
发布信息
在 Junos OS 7.4 版之前引入的语句。