Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

file (System Logging)

Syntax

Hierarchy Level

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 OS System Logging Facilities.

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 of the specified level and higher are logged. For a list of the severities, see System Log Message Severity Levels.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced before Junos OS Release 7.4.