Configuring System Logging for a Single-Chassis System

The Junos system logging utility is similar to the UNIX syslogd utility. This section describes 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.

You direct messages to one or more destinations by including the appropriate statement at the [edit system syslog] hierarchy level:

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, Interpreting Messages Generated in Standard Format by Services on a PIC, and Interpreting Messages Generated in Structured-Data Format. You can alter the content and format of logged messages in the following ways:

For a statement summary for the statements discussed in this chapter, see the Junos System Basics Configuration Guide.

For detailed information about configuring system logging, see the following sections: