Each system log message belongs to a facility, which is a group of messages that are either generated by the same 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 destination:
- [edit system syslog]
- (console | file filename | host destination | user username) {
-
facility severity;
- }
(For information about the destinations, see Directing Messages to a Log File, Directing Messages to a User Terminal, Directing Messages to the Console, and Directing Messages to a Remote Machine or the Other Routing Engine.)
To log the messages belonging to more than one facility to a particular destination, specify each facility name as a separate statement within the set of statements for the destination.
Table 19 lists the JUNOS system logging facilities that you can specify in configuration statements at the [edit system syslog] hierarchy level.
Table 19: JUNOS System Logging Facilities
Table 20 lists the severity levels that you can specify in configuration statements at the [edit system syslog] hierarchy level. The levels from emergency through info are in order from highest severity (greatest effect on functioning) to lowest.
Unlike the other severity levels, the none level disables logging of a facility instead of indicating how seriously a triggering event affects routing functions. For more information, see Disabling Logging of a Facility.
Table 20: System Log Message Severity Levels