Minimum System Logging Configuration
To record or view system log messages, you must include the syslog statement at the
[edit system] hierarchy level. Specify at least one destination for the messages, as
described in Table 3 on page 5.
Table 3: Minimum Configuration Statements for System Logging
Minimum Configuration StatementsDestination
[edit system syslog]
file filename {
facility severity ;
}
File
[edit system syslog]
user (username | *) {
facility severity ;
}
Terminal session of one, several, or all users
[edit system syslog]
console {
facility severity ;
}
Routing platform console
[edit system syslog]
host (hostname | other-routing-engine) {
facility severity ;
}
Remote machine or the other Routing Engine
on the routing platform
Default System Log Settings
Table 4 on page 5 summarizes the default system log settings that apply to all platforms
that run the Junos OS, and specifies which statement to include in the configuration to
override the default value.
Table 4: Default System Logging Settings
InstructionsOverriding StatementDefaultSetting
“Changing the
Alternative
Facility Name
for Remote
Messages” on
page 13
[edit system syslog]
host hostname {
facility-override
facility;
}
For change-log: local6
For conflict-log: local5
For dfc: local1
For firewall: local3
For
interactive-commands:
local7
For pfe: local4
Alternative facility for
message forwarded
to a remote machine
“Logging
Messages in
Structured-Data
Format” on
page 11
[edit system syslog]
file filename {
structured-data;
}
Standard Junos
format, based on
UNIX format
Format of messages
logged to a file
5Copyright © 2010, Juniper Networks, Inc.
Chapter 1: Configuring System Log Messages