Configuring System Logging for a Single-Chassis System
Copyright © 2010, Juniper Networks, Inc.
[edit system syslog]
host scc-master {
any info;
}
The Junos system logging utility is similar to the UNIX
how to configure system logging for a single-chassis system that runs the Junos OS.
System logging configuration for the Junos-FIPS software and for Juniper Networks
routing platforms in a Common Criteria environment is the same as for the Junos OS. For
more information, see the Secure Configuration Guide for Common Criteria and Junos-FIPS.
Each system log message belongs to a facility, which groups together related messages.
Each message is also preassigned a severity level, which indicates how seriously the
triggering event affects routing platform functions. You always specify the facility and
severity of the messages to include in the log. For more information, see "Specifying the
Facility and Severity of Messages to Include in the Log" on page 8.
You direct messages to one or more destinations by including the appropriate statement
at the [
] hierarchy level:
edit system syslog
To a named file in a local file system, by including the
Messages in Structured-Data Format" on page 11.
To the terminal session of one or more specific users (or all users) when they are logged
in to the routing platform, by including the
to a User Terminal" on page 12.
To the routing platform console, by including the
Messages to the Console" on page 12.
To a remote machine that is running the
on the routing platform, by including the
a Remote Destination from the Routing Matrix" on page 32.
By default, messages are logged in a standard format, which is based on a UNIX system
log format; for detailed information, see "Interpreting Messages Generated in Standard
Format by a JUNOS Process or Library" on page 41, "Interpreting Messages Generated
in Standard Format by Services on a PIC" on page 41, and "Interpreting Messages
Generated in Structured-Data Format" on page 36. You can alter the content and format
of logged messages in the following ways:
In Junos 8.3 and later, you can log messages to a file in structured-data format instead
of the standard Junos format. Structured-data format provides more information
without adding significant length, and makes it easier for automated applications to
extract information from the message. For more information, see "Logging Messages
in Structured-Data Format" on page 11.
A message's facility and severity level are together referred to as its priority. By default,
the standard Junos format for messages does not include priority information.
(Structured-data format includes a priority code by default.) To include priority
Chapter 1: Configuring System Log Messages
utility. This section describes
syslogd
file
statement. See "Logging
statement. See "Directing Messages
user
statement. See "Directing
console
utility or to the other Routing Engine
syslogd
host
statement. See "Directing Messages to
7
Need help?
Do you have a question about the JUNOS OS 10.3 - SYSTEM LOG MESSAGES REFERENCE 7-12-2010 and is the answer not in the manual?
Questions and answers