file (System Logging)
Syntax
file filename {
facility severity;
archive {
files
number;
size
size;
(no-
world-readable
|
world-readable
);
}
explicit-priority
;
match
"regular-expression";
structured-data
{
brief;
}
}
Hierarchy Level
[edit system
syslog
]
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Description
Configure the logging of system messages to a file.
Options
facility
—Class of messages to log. To specify multiple classes, include multiple
facility severity
statements. For a list of the facilities, see JUNOS System Logging
Facilities and Message Severity Levels.
file filename
—File in the /var/log directory in which to log messages from the specified
facility. To log messages to more than one file, include more than one
file
statement.
severity
—Severity of the messages that belong to the facility specified by the paired
facility
name. Messages with severities the specified level and higher are logged. For
a list of the severities, see JUNOS System Logging Facilities and Message Severity
Levels.
The remaining statements are explained separately.
Required Privilege
Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.
Related
Documentation
•
Directing System Log Messages to a Log File
•
Junos System Log Messages Reference
Copyright © 2010, Juniper Networks, Inc.
684
Complete Software Guide for Junos
®
OS for EX Series Ethernet Switches, Release 10.3
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...