Directing Messages to a User Terminal
To direct system log messages to the terminal session of one or more specific users (or
all users) when they are logged in to the local Routing Engine, include the user statement
at the [edit system syslog] hierarchy level:
[edit system syslog]
user (username | *) {
facility severity;
match "regular-expression";
}
Specify one or more Junos usernames, separating multiple values with spaces, or use
the asterisk (*) to indicate all users who are logged in to the local Routing Engine.
For the list of facilities and severity levels, see “Specifying the Facility and Severity of
Messages to Include in the Log” on page 8. For information about the match statement,
see “Using Regular Expressions to Refine the Set of Logged Messages” on page 22.
Directing Messages to the Console
To direct system log messages to the console of the local Routing Engine, include the
console statement at the [edit system syslog] hierarchy level:
[edit system syslog]
console {
facility severity;
}
For the list of facilities and severity levels, see “Specifying the Facility and Severity of
Messages to Include in the Log” on page 8.
Directing Messages to a Remote Machine or the Other Routing Engine
To direct system log messages to a remote machine or to the other Routing Engine on
the routing platform, include the host statement at the [edit system syslog] hierarchy
level:
[edit system syslog]
host (hostname | other-routing-engine) {
facility severity;
explicit-priority;
facility-override facility;
log-prefix string;
match "regular-expression";
}
source-address source-address;
To direct system log messages to a remote machine, include the host hostname statement
to specify the remote machine’s IP version 4 (IPv4) address, IP version 6 (IPv6) address,
or fully qualified hostname. The remote machine must be running the standard syslogd
utility. We do not recommend directing messages to another Juniper Networks routing
platform. In each system log message directed to the remote machine, the hostname of
the local Routing Engine appears after the timestamp to indicate that it is the source for
the message.
Copyright © 2010, Juniper Networks, Inc.12
Junos 10.3 System Log Messages Reference