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


Default System Log Settings

Table 6 summarizes default system log settings that apply to all platforms that run the JUNOS software, and specifies which statement to include in the configuration to override the default value.

Table 6: Default System Logging Settings 
Setting
Default
Overriding Statement
Instructions

Alternative facility for message forwarded to a remote machine

For change-log: local6

For conflict-log: local5

For dfc: local1

For firewall: local3

For interactive-commands: local7

For pfe: local4

[edit system syslog]
host
hostname {
    facility-override
facility;
}

Changing the Alternative Facility Name for Remote Messages

Directory for log files

/var/log

[edit system syslog]
file
full-path/filename {
    ...;
}

Directing Messages to a Log File

Maximum number of archived log files

10

[edit system syslog]
archive
{
    files number;
}
file
filename {
    archive {
        files number;
    }
}

Configuring Log File Archiving

Maximum size of log file

J-series: 128 kilobytes (KB)

M-series and T-series: 1 megabyte (MB)

TX Matrix: 10 MB

[edit system syslog]
archive
{
    size size;
}
file
filename {
    archive {
        size size;
    }
}

Configuring Log File Archiving

Timestamp format

Month, date, hour, minute, second
For example: Aug 21 12:36:30

[edit system syslog]
time-format
format;

Including the Year or Millisecond in Timestamps

Users who can read log files

root user and users with the JUNOS maintenance permission

[edit system syslog]
archive {
    world-readable;
}
file
filename {
    archive {
        world-readable;
    }
}

Configuring Log File Archiving



In addition, the following messages are generated by default on specific platforms. To view either type of message, you must configure at least one destination for messages as described in Minimum System Logging Configuration.

To log the message on an M-series or T-series platform, include the kernel info statement at the appropriate hierarchy level:

[edit system syslog]
(console | file filename | host destination | user username) {
    kernel info;
}


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