logging host

Configures a syslog server.
Syntax
logging host { ipv4-addr | server-name | ipv6 ipv6-addr } [ udp-port number ]
no logging host { ipv4-addr | server-name | ipv6 ipv6-addr } [ udp-port number ]
Command Default

Syslog server is not configured.

Parameters
ipv4-addr
Configures a syslog server with the specified IPv4 address.
server-name
Configures a syslog server with the specified name..
ipv6 ipv6-addr
Configures a syslog server with the specified IPv6 address.
udp-port number
Specifies the UDP port number.
Modes

Global configuration mode

Usage Guidelines

You can specify up to six syslog servers by configuring the command.

The no form of the command removes the syslog server configuration.

Examples

The following example configures a syslog server with IP address 10.0.0.99.

device(config)# logging host 10.0.0.99

To specify an additional syslog server, enter the logging host command again.

device(config)# logging host 10.0.0.100