Syntax
•
logging {ip4-address | ip6-address |hostname} [port port] [severity level] [facility facility] [description
text]
•
no logging {ip4-address | ip6-address | hostname}
•
ip4-address — Host IPv4 address to be used as a syslog server.
•
ip6-address — Host IPv6 address to be used as a syslog server. When the IPv6 address is a Link
Local address (IPv6Z address), the outgoing interface name must be specified. Refer to the usage
guidelines for the interface name syntax.
•
hostname — Specifies the host name of the syslog server. (Range: 1 - 158 characters)
•
port — Specifies the port number for syslog messages. (Range: 1 - 65535)
•
level — Specifies the severity level of logged messages sent to the syslog servers. Possible values:
emergencies, alerts, critical, errors, warnings, notifications, informational and debugging.
•
facility — Specifies the facility that is indicated in the message. Possible values: local0, local1,
local2, local3, local4, local5, local 6, local7.
•
text — Syslog server description. (Range: 1-64 characters)
Default Configuration
•
The default port number is 514.
•
The default logging message level is informational.
•
The default facility is local7.
Command Mode
Global Configuration mode.
User Guidelines
•
Up to 8 syslog servers can be used.
•
If no specific severity level is specified, the global values apply to each server.
•
The IPv6Z address format: <ipv6-link-local-address>%<interface-name>
–
interface-name — vlan<integer> | ch<integer> | isatap<integer> | <physical-port-name> | 0
–
integer — <decimal-number> | <integer><decimal-number>
–
decimal-number — 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
–
physical-port-name — Designated port number, for example 1/e16.
If the egress interface is not specified, the default interface is selected. Specifying interface zone=0 is
the same as not defining an egress interface.
402
Syslog Commands