set policy syslog (S-, K-Series)

Use this command to enable and extended format syslog policy settings.

Syntax

set policy syslog [machine-readable {enable | disable}] [extended-format {enable | disable}]

Parameters

machine-readable enable | disable (Optional) Sets the formatting of rule usage messages. The format is either machine-readable or human-readable.

enable - Formats the rule usage messages so that they might be processed by a machine (scripting backend, etc.).

disable - Formats the rule usage messages so that they are human readable.

extended-format enable | disable (Optional) Sets the control for the extended syslog message format.

enable - Includes additional information in the rule usage syslog messages.

disable - Uses the original rule usage syslog message format.

Defaults

If machine-readable enable is not specified, syslog formatting is set to human-readable. If extended-format enable is not specified, syslog standard format is set.

Mode

All command modes.

Usage

The data included in the extended format is VLAN, COS assigned, and the following fields found in the packet:

  • DEST MAC
  • SRC MAC
  • TAG(8100:tci)
  • Ether Type
  • SIP(ip)
  • DIP(ip)
  • Protocol
  • TOS/DSCP
  • Fragmentation indication
  • Destination PORT
  • Source PORT

Example

This example shows how to set the device formatting of rule usage messages as machine-readable:

System(rw)->set policy syslog machine-readable enable