3.1.6 System Log Configuration

Configure SysLog Server IP address or domain name. When the mode operation is enabled, the syslog message sends out to syslog server. The syslog protocol is based on UDP communication and is received on UDP port 514 and the SysLog server will not send acknowledgments back sender as UDP is a connectionless protocol and it does not provide acknowledgments. The syslog packet always sends out even if the syslog server does not exist.

System Log configuration commands.

Command Syntax:

logging on
logging host { <ipv4_addr> | <domain_name> }
logging level { informational | notice | warning | error }
Table 3-15. Command Description

Argument

Description

Parameter

<ipv4_addr>

The IPv4 address of the log server

<domain_name>

A valid name consists of a sequence of domain labels separated by period (.), each domain label starting and ending with an alphanumeric character and possibly also containing ‘-’ characters. The length of a domain label must be 63 characters or less.

informational

Severity 6: Informational messages

notice

Severity 5: Normal but significant condition

warning

Severity 4: Warning conditions

error

Severity 3: Error conditions

Default

N.A

Mode

Global Configuration mode

Usage

Enable SysLog server, specify its address and what level of messages are sent to the SysLog server. To disable the SysLog server, use the no logging on command.

Example

Example 1:

Enable the SysLog server at 192.168.0.1 with warning level messages.

(config)#logging on
(config)#logging host 192.168.0.1
(config)#logging level warning

Example 2:

Disable the SysLog server.

(config)#no logging on