Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring System Log Messages

The QFabric system monitors events that occur on its component devices and distributes system log messages about those events to all external system log message servers (hosts) that are configured. Messages are stored in the QFabric system database for viewing only using the show log command. Component devices may include Node devices, Interconnect devices, Director devices, and the Virtual Chassis.

This example describes how to configure system log messages on the QFabric system.

Requirements

This example uses the following hardware and software components:

  • Junos OS Release 12.2
  • QFabric system
  • External servers that can be configured as system log message hosts

Overview

Component devices that generate system log message events may include Node devices, Interconnect devices, Director devices, and the control plane switches. The following configuration example includes these components in the QFabric system:

  • Director software running on the Director group
  • Control plane switches
  • Interconnect device
  • Multiple Node devices

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

set system syslog host 10.1.1.12 any errorset system syslog file qflogs any error

Step-by-Step Procedure

The following example requires that you navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To configure system messages from the QFabric Director device:

  1. Specify a host, any facility, and the error severity level.
    [edit system syslog]user@switch# set host 10.1.1.12 any error

    Note: You can configure more than one system log message server (host). The QFabric system sends the messages to each server configured.

  2. (Optional) Specify a filename to capture log messages.

    Note: On the QFabric system, a syslog file named messages is configured implicitly with facility and severity levels of any any and a file size of 100 MBs. Therefore, you cannot specify the filename messages in your configuration, and automatic command completion does not work for that filename.

    [edit system syslog]user@switch# set file qflogs any error

Results

From configuration mode, confirm your configuration by entering the show system command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

[edit]user@switch# show system
syslog {file qflogs {any error;}host 10.1.1.12 {any error;}}

If you are done configuring the device, enter commit from configuration mode.

Published: 2014-03-24

Supported Platforms

Published: 2014-03-24