> - Downloads
> - Saving System Log Messages to a File (SRC CLI)
> - Related Topics
> - Saving System Log Messages to a File (C-Web Interface)
> - Sending System Log Messages to Other Servers (SRC CLI)
> - Sending Notifications for System Log Messages to Users (SRC CLI)
> - Overview of the C Series Controller Log Server

> # Saving System Log Messages to a File (SRC CLI)

> 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 Controller:

> 1. From configuration mode, access the configuration statement that configures the system log server.
>    `
>    [edit]
>    user@host# edit system syslog
>    `
> 2. Specify the name of the file to store messages, and group and severity level for the messages.
>    `
>    [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
>    `

> #### Published: 2009-09-25

> Copyright © 2009, Juniper Networks, Inc. All rights reserved. Trademark Notice.