Syslog server configuration in Broadcom SoNiC
1. To Configure remote syslog server to forward syslog messages
logging server <host> [ message-type { audit | auditd-system | event | log } ] [ remote-port <vrport> ] [ protocol { tcp | tls | udp } ] [ source-interface { Ethernet | Loopback | Management | PortChannel | Vlan | SubInterface } ] [ vrf { mgmt | <vrf-name> } ] [ severity <sev_type> ]
no logging server <host> { [ remote-port ] | [ source-interface ] | [ vrf ] | [ severity ] | [ protocol ] }
sonic(config)# logging server 20.1.1.1 severity DEBUG source-interface Ethernet 1 vrf Vrf1
2. To Show the list of configured remote syslog servers
3. To Display logging information
4. Show total number of logging entries
5. Filter logs based on criteria
show logging filter { { since <since_date> { { [ level <log_level> ] } | { [ severity <log_severity> ] } ] } } | { level <log_level> { [ since <since_date> ] } } | { severity <log_severity> { [ since <since_date> ] } } | { type <log_type> { [ since <since_date> ] } { { [ level <log_level> ] } | { [ severity <log_severity> ] } ] }
6. To get output of the last specified number of log lines
show logging lines [ <lines> ]
Related Articles
IP Helper Configuration on Broadcom SoNiC
1. To Display IP helper global information Command: show ip forward-protocol 2. To Displays IP helper server addresses configured on interface Command: show ip helper-address [ <iface> ] 3.To Display IP helper packet counters and statistics on ...
Configuring AAA in Broadcom sonic
AAA Authentication Fail through Description: Configures AAA authentication fail through. Syntax: aaa authentication failthrough <enable> Parameters: enable: Enable or disable the feature. Example: sonic(config)# aaa authentication failthrough enable ...
DHCP Snooping configuration on Broadcom Sonic
Enabling DHCP Snooping Command: ip dhcp snooping This command enables DHCP Snooping globally on the device, helping monitor and block unauthorized DHCP servers. Disable DHCP snooping sonic-cli# configure terminal sonic-cli(config)# no ip dhcp ...
Management Interface Configuration (SONiC)
Configure the management interface (eth0) for network administration in SONiC. Default Configuration: By default, eth0 uses DHCP to dynamically obtain an IP address from a DHCP server. Static IP Configuration: Command Line: sudo config interface ip ...
Border Gateway Protocol- FAQ (Broadcom SoNiC)
1. How do I configure BGP hold and keepalive timers? Use timers <keepalive> <hold>. 2. How do I enable BGP in SONiC? Use router bgp <AS_number> to enter BGP configuration mode. 3. What does neighbor mean in BGP configuration? neighbor defines the IP ...