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


Saving System Log Messages to a File

Use the following statements to configure the system log server to store messages in a file:

system syslog file file-name (any | authorization | daemon | ftp | kernel | user | local7) {

(any | emergency | alert | critical | error | warning | notice | info | none);
}

By default, message files are stored in the /var/log directory. All log files are rotated daily. When a new log file is created, the previous day's file is compressed and saved. After rotation, the software retains only the last five compressed log files.

To configure the system log server to send messages to a file on the local C-series platform:

  1. From configuration mode, access the configuration statement that configures the system log server.
  2. [edit]
    
    user@host# edit system syslog
    
    
    
  3. Specify the name of the file to store messages, and group and severity level for the messages.
  4. [edit system syslog]
    
    user@host# set file file-name message-group severity
    
    
    

For example, to configure the system log server to save critical messages generated by authentication and authorization attempts to the file named access:

[edit system syslog]
user@host# set file access authorization critical


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