information in standard-format messages directed to a file or a remote destination,
include the explicit-priority statement. For more information, see “Including Priority
Information in System Log Messages” on page 18.
•
By default, the standard Junos format for messages specifies the month, date, hour,
minute, and second when the message was logged. You can modify the timestamp
on standard-format messages to include the year, the millisecond, or both.
(Structured-data format specifies the year and millisecond by default.) For more
information, see “Including the Year or Millisecond in Timestamps” on page 21.
•
When directing messages to a remote machine, you can specify the IP address that is
reported in messages as their source. You can also configure features that make it
easier to separate Junos-specific messages or messages generated on particular
routing platforms. For more information, see “Directing Messages to a Remote
Destination from the Routing Matrix” on page 32.
•
The predefined facilities group together related messages, but you can also use regular
expressions to specify more exactly which messages from a facility are logged to a
file, a user terminal, or a remote destination. For more information, see “Using Regular
Expressions to Refine the Set of Logged Messages” on page 22.
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:
•
Specifying the Facility and Severity of Messages to Include in the Log on page 8
•
Directing Messages to a Log File on page 10
•
Directing Messages to a User Terminal on page 12
•
Directing Messages to the Console on page 12
•
Directing Messages to a Remote Machine or the Other Routing Engine on page 12
•
Configuring the Size and Number of Log Files on page 17
•
Including Priority Information in System Log Messages on page 18
•
Including the Year or Millisecond in Timestamps on page 21
•
Using Regular Expressions to Refine the Set of Logged Messages on page 22
•
Disabling Logging of a Facility on page 24
•
Examples: Configuring System Logging on page 24
Specifying the Facility and Severity of Messages to Include in the Log
Each system log message belongs to a facility, which groups together messages that
either are generated by the same source (such as a software process) or concern a similar
condition or activity (such as authentication attempts). Each message is also preassigned
a severity level, which indicates how seriously the triggering event affects routing platform
functions.
When you configure logging for a facility and destination, you specify a severity level for
each facility. Messages from the facility that are rated at that level or higher are logged
to the following destination:
Copyright © 2010, Juniper Networks, Inc.8
Junos 10.3 System Log Messages Reference