Sending logging messages using TCP
Syntax:
no logging <ip-addr> [udp 1024-65535 | tcp 1024-65535]
Allows the configuration of the UDP or TCP transport protocol for the transmission of logging messages to a syslog server.
Specifying a destination port with UDP or TCP is optional.
Default ports: UDP port is 514
TCP port is 1470
Default Transport Protocol: UDP
Because TCP is a connection-oriented protocol, a connection must be present before the logging information is sent. This helps ensure that the logging message will reach the syslog server. Each configured syslog server needs its own connection. You can configure the destination port that is used for the transmission of the logging messages.
Configuring TCP for logging message transmission using the default port
switch(config)# logging 192.123.4.5 tcp
(Default TCP port 1470 is used.)
Configuring TCP for logging message transmission using a specified port
switch(config)# logging 192.123.4.5 9514
(TCP port 9514 is used.)
Configuring UDP for logging message transmission using the default port
switch(config)# logging 192.123.4.5 udp
(Default UDP port 514 is used.)
Configuring UDP for logging message transmission using a specified port
switch(config)# logging 192.123.4.5 9512
(UDP port 9512 is used.)
Syntax:
no logging facility <facility-name>
The logging facility specifies the destination subsystem used in a configured syslog server. (All configured syslog servers must use the same subsystem.) Hewlett Packard Enterprise recommends the default (user) subsystem unless your application specifically requires another subsystem. Options include:
|
(default) Random user-level messages |
|
Kernel messages |
|
Mail system |
|
System daemons |
|
Security/authorization messages |
|
Messages generated internally by syslog |
|
Line-printer subsystem |
|
Netnews subsystem |
|
uucp subsystem |
|
cron/at subsystem |
|
cron/at subsystem |
|
Reserved for system use |
|
Reserved for system use |
Use the
no
form of the command to remove the configured facility and reconfigure the default (user) value.