set logging server

Use this command to configure a Syslog server.

Syntax

set logging server index [ip-addr ip-addr] [facility facility] [severity severity] [descr descr] [port port] [state {enable | disable}]

Parameters

index Specifies the server table index number for this server. Valid values are 1 - 8.
ip-addr ip-addr (Optional) Specifies the Syslog message server‘s IPv4 or IPv6 address.
facility facility (Optional) Specifies the server‘s facility name. Valid values are: local0 to local7.
severity severity (Optional) Specifies the severity level at which the server will log messages. Valid values and corresponding levels are:

emergencies (system is unusable)

alerts (immediate action required)

critical conditions

error conditions

warning conditions

notifications (significant conditions)

informational messages

debugging messages

descr descr (Optional) Specifies a textual string description of this facility/server.
port port (Optional) Specifies the default UDP port the client uses to send to the server.
state enable | disable (Optional) Enables or disables this facility/server configuration.

Defaults

  • If ip-addr is not specified, an entry in the Syslog server table will be created with the specified index number and a message will display indicating that no IP address has been assigned.
  • If not specified, facility, severity and port will be set to defaults configured with the set logging default command (set logging default).
  • If port is not specified, the UDP port defaults to 514 unless changed using set logging default.
  • If descr is not specified, no description is configured.
  • If state is not specified, the server will not be enabled or disabled.

Mode

All command modes.

Usage

If C2 security mode is enabled, You can not create, modify, or clear a server logging configuration while in Read-Write user mode.

Example

This command shows how to enable a Syslog server configuration for index 1, IP address 134.141.89.113, facility local4, severity level 3 on port 514:

System(rw)->set logging server 1 ip-addr 134.141.89.113 facility local4 severity 3 port 514 state enable