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

Sending System Log Messages to a File

You can direct system log messages to a file on the compact flash drive. The default directory for log files is /var/log. To specify a different directory on the compact flash drive, include the complete pathname. For the list of logging facilities and severity levels, see Table 22 and Table 23.

For information about archiving log files, see Archiving System Logs.

The procedure provided in this section sends all security-related information to the sample file named security.

To send messages to a file:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 24.
  3. If you are finished configuring the network, commit the configuration.

Table 24: Sending Messages to a File

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the System Syslog level in the configuration hierarchy.

In the configuration editor hierarchy, select System>Syslog.

From the top of the configuration hierarchy enter

edit system syslog

Create a file named security, and send log messages of the authorization class at the severity level info to the file.

  1. Next to File, click Add new entry.
  2. In the File name box, type security.
  3. Next to Contents, click Add new entry.
  4. In the Facility drop-down menu, select authorization.
  5. In the Level drop-down menu, select info.

Set the filename and the facility and severity level:

set file security authorization info


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