Juniper JUNOS OS 10.3 - SYSTEM LOG MESSAGES REFERENCE 7-12-2010 Reference Manual page 87

System log messages reference
Table of Contents

Advertisement

Using Regular
Expressions
Copyright © 2010, Juniper Networks, Inc.
Table 11: Regular Expression Operators for the match Statement
Operator
. (period)
* (asterisk)
+ (plus sign)
? (question mark)
| (pipe)
! (exclamation point)
^ (caret)
$ (dollar sign)
[ ] (paired square
brackets)
( ) (paired parentheses)
Filter messages that belong to the
include the string
configure
[edit system syslog]
user root {
interactive-commands any;
match ".*configure.*";
}
Messages like the following appear on the
command to enter configuration mode:
configure
timestamp router-name mgd[PID]: UI_CMDLINE_READ_LINE: User 'user', command
'configure private'
Filter messages that belong to the
directing them to the file
/var/log/process-errors
process (snmpd), instead directing them to the file
[edit system syslog]
file process-errors {
daemon error;
Chapter 1: Configuring System Log Messages
Matches
One instance of any character except the space.
Zero or more instances of the immediately preceding term.
One or more instances of the immediately preceding term.
Zero or one instance of the immediately preceding term.
One of the terms that appear on either side of the pipe operator.
Any string except the one specified by the expression, when the
exclamation point appears at the start of the expression. Use of the
exclamation point is Junos OS–specific.
Start of a line, when the caret appears outside square brackets.
One instance of any character that does not follow it within square
brackets, when the caret is the first character inside square brackets.
End of a line.
One instance of one of the enclosed alphanumeric characters. To
indicate a range of characters, use a hyphen ( - ) to separate the
beginning and ending characters of the range. For example, [a-z0-9]
matches any letter or number.
One instance of the evaluated value of the enclosed term.
Parentheses are used to indicate the order of evaluation in the regular
expression.
interactive-commands
to the terminal of the root user:
root
user's terminal when a user issues a
daemon
facility and have severity
. Omit messages generated by the SNMP
/var/log/snmpd-errors
facility, directing those that
error
or higher,
:
23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os 10.3 - software

Table of Contents