size size specifies the maximum size of each file. The value can be from 64 KB (64k)
through 1 gigabyte (1g); to represent megabytes, use the letter m after the integer. There
is no space between the digits and the k, m, or g units letter.
world-readable enables all users to read log files. To restore the default permissions,
include the no-world-readable statement.
Including Priority Information in System Log Messages
A message’s facility and severity level are together referred to as its priority. By default,
messages logged in the standard Junos format do not include information about priority.
To include priority information in standard-format messages directed to a file, include
the explicit-priority statement at the [edit system syslog file filename] hierarchy level:
[edit system syslog file filename]
facility severity;
explicit-priority;
NOTE: Messages logged in structured-data format include priority information by
default (structured-data format is available in Junos OS Release 8.3 and later and for
file destinations only). If you include the structured-data statement at the [edit system
syslog file filename] hierarchy level along with the explicit-priority statement, the
explicit-priority statement is ignored and messages are logged in structured-data format.
For information about the structured-data statement, see “Logging Messages in
Structured-Data Format” on page 11. For information about the contents of a
structured-data message, see “Displaying a Log File from a Single-Chassis System” on
page 35.
To include priority information in messages directed to a remote machine or the other
Routing Engine, include the explicit-priority statement at the [edit system syslog host
(hostname | other-routing-engine)] hierarchy level:
[edit system syslog host (hostname | other-routing-engine)]
facility severity;
explicit-priority;
The priority recorded in a message always indicates the original, local facility name. If
the facility-override statement is included for messages directed to a remote destination,
the Junos system logging utility still uses the alternative facility for the messages
themselves when directing them to the remote destination. For more information about
alternative facilities, see “Changing the Alternative Facility Name for Remote Messages”
on page 13.
When the explicit-priority statement is included, the Junos logging utility prepends codes
for the facility name and severity level to the message tag name, if the message has one:
FACILITY-severity[-TAG]
(The tag is a unique identifier assigned to some Junos system log messages; for more
information, see “Interpreting Messages Generated in Structured-Data Format” on page 36,
“Interpreting Messages Generated in Standard Format by Services on a PIC” on page 41,
Copyright © 2010, Juniper Networks, Inc.18
Junos 10.3 System Log Messages Reference