[Contents] [Prev] [Next] [Index] [Report an Error]


Configure System Logging

To configure the router to log system messages, include the syslog statement at the [edit system] hierarchy level:

[edit system] 
syslog {
    archive {
        files number ;
        size size ; 
        (world-readable | no-world-readable); 
    }
    file filename {
        facility level ;
        archive {
            files number ;
            size size ; 
            (world-readable | no-world-readable); 
        }
    }
    host hostname {
        facility level ;
        facility-override facility;
        log-prefix string;
    }
    user (username | *) {
        facility level ;
    }
    console {
        facility level ;
    }
}

The JUNOS system logging utility is similar to the UNIX syslogd utility, and includes the following features:


Table 2: JUNOS System Logging Facilities

Facility
Type of Event or Error
any
Any (that is, includes messages from all facilities)
authorization
Authentication and authorization attempts
change-log
Change to the JUNOS configuration
conflict-log
Configuration that is inconsistent with router hardware
cron
Actions performed or errors encountered by the cron daemon
daemon
Actions performed or errors encountered by various system daemons
firewall
Packet filtering actions performed by a firewall filter
interactive-commands
Commands issued at the JUNOS command-line interface (CLI) prompt
kernel
Actions performed or errors encountered by the JUNOS kernel
pfe
Actions performed or errors encountered by the Packet Forwarding Engine
user
Actions performed or errors encountered by various user-space processes


Table 3: System Log Message Severity Levels

Severity Level
Description
emergency
System panic or other condition that causes the router to stop functioning.
alert
Conditions that require immediate correction, such as a corrupted system database.
critical
Critical conditions, such as hard drive errors.
error
Error conditions that generally have less serious consequences than errors in the emergency, alert, and critical levels.
warning
Conditions that warrant monitoring.
notice
Conditions that are not errors but might warrant special handling.
info
Events or nonerror conditions of interest.
debug
Software debugging messages. Specify this level only when so directed by a technical support representative.

For a statement summary for the syslog statement, see the JUNOS Internet Software Configuration Guide: Getting Started.

For information about special logging features and for examples, see the following sections:


[Contents] [Prev] [Next] [Index] [Report an Error]