OcNOS-RON : System Management Guide : System Management Configuration Guide : Syslog Configuration : Configuration to support multiple logging servers
Configuration to support multiple logging servers
Note: Maximum 4 remote syslog server is supported.
 
#configure terminal
Enter Configure mode.
(config)#hostname OcNOS
Configuring the hostname of the device
(config)#feature rsyslog vrf management
Enable feature on default or management VRF. By default this feature runs on the management VRF.
(config)#logging level all 7
Enables debug messages for all modules.
(config)#logging remote server 10.12.17.10 5 vrf management
Redirects the log messages to the server configured. (Configuring 1 logging server).Configuring with log severity level as 5.By default severity level 7 is considered if no specific levels configured.
(config)#logging remote server 10.12.17.16 5 vrf management
Redirects the log messages to the server configured. (Configuring 2 logging server). Configuring with log severity level as 5. By default severity level 7 is considered if no specific levels configured.
(config)#logging remote server 10.12.17.11 7 vrf management
Redirects the log messages to the server configured. (Configuring 3 logging server). Configuring with log severity level as 7. By default severity level 7 is considered if no specific levels configured.
(config)#logging remote server 10.12.28.22 7 vrf management
Redirects the log messages to the server configured. (Configuring 4 logging server). Configuring with log severity level as 7. By default severity level 7 is considered if no specific levels configured.
(config)#exit
Exit configure mode.
 
Validation Commands
OcNOS #show running-config logging
<snippet of show running-config logging output ...>
feature rsyslog vrf management
logging remote server 10.12.17.10 5 vrf management
logging remote server 10.12.17.16 5 vrf management
logging remote server 10.12.17.11 7 vrf management
logging remote server 10.12.28.22 7 vrf management
 
OcNOS #show logging server
Remote Servers:
10.12.17.10
severity: Operator (informational)
facility: local7
VRF : management
10.12.17.16
severity: Operator (informational)
facility: local7
VRF : management
10.12.17.11
severity: Operator (debug-detailed)
facility: local7
VRF : management
10.12.28.22
severity: Operator (debug-detailed)
facility: local7
VRF : management
Last modified date: 08/28/2023