Command Line Reference
System Configuration
Syslog
7 min
syslog view syslog view table 1 syslog view table 1 syslog view command purpose show syslog \[ follow | tail number | grep string ] show syslog show syslog \[follow|tail show syslog \[follow|tail number |grep string ] \[command] show syslog \[ follow | tail number | grep string ] \[purpose] show syslog content \[parameters] parameter description number specify the number of rows at the end of the syslog to view string filter syslog based on string content \[view] privileged user view \[use cases] sonic# show syslog follow apr 22 07 00 33 664168 sonic notice swss#orchagent updateportoperstatus port ethernet76 oper state set from down to up apr 22 07 00 33 666717 sonic notice swss#orchagent sethostintfsoperstatus set operation status up to host interface ethernet76 apr 22 07 00 33 667517 sonic notice swss#orchagent dotask ethernet76 oper speed is 100000 apr 22 07 01 16 122292 sonic warning snmp#snmp subagent \[sonic ax impl] warning syncd 'counters db' missing attribute ''sai port stat if in discards'' apr 22 07 01 16 190548 sonic warning snmp#snmp subagent \[sonic ax impl] warning syncd 'counters db' missing attribute ''sai port stat if out discards'' apr 22 07 03 05 328015 sonic info smartd\[517] device /dev/sda \[sat], smart usage attribute 194 temperature celsius changed from 37 to 36 apr 22 07 06 17 081883 sonic warning snmp#snmp subagent \[sonic ax impl] warning syncd 'counters db' missing attribute ''sai port stat if in discards'' apr 22 07 06 17 153121 sonic warning snmp#snmp subagent \[sonic ax impl] warning syncd 'counters db' missing attribute ''sai port stat if out discards'' apr 22 07 06 26 931226 sonic info klish show syslog apr 22 07 06 30 884589 sonic info klish show syslog sonic# show syslog tail 5 apr 22 07 06 17 081883 sonic warning snmp#snmp subagent \[sonic ax impl] warning syncd 'counters db' missing attribute ''sai port stat if in discards'' apr 22 07 06 17 153121 sonic warning snmp#snmp subagent \[sonic ax impl] warning syncd 'counters db' missing attribute ''sai port stat if out discards'' apr 22 07 06 26 931226 sonic info klish show syslog apr 22 07 06 30 884589 sonic info klish show syslog apr 22 07 07 39 626660 sonic info klish show syslog follow sonic# show syslog grep klish 2025 04 18t07 35 50 259047+00 00 sonic systemd\[1] starting klish service 2025 04 18t07 35 50 259047+00 00 sonic systemd\[1] starting klish service apr 18 07 36 05 905241 sonic info systemd\[1] starting klish frr service apr 18 07 36 07 395529 sonic info restore cfg py\[1863] start to restore klish cli configure apr 18 07 36 07 395612 sonic info restore cfg py\[1863] klish start apr 18 07 36 07 736139 sonic info systemd\[1] finished klish service apr 18 07 38 25 885025 sonic info restore frr py\[3030] no klish configure in database program exit now apr 18 07 38 25 885149 sonic info restore frr py\[3030] set klish restore finished=1 apr 18 07 38 25 945585 sonic info systemd\[1] finished klish frr service apr 18 08 13 33 028821 sonic info klish system bash apr 18 09 51 22 581430 sonic info klish startup syslog config syslog config table 2 syslog config table 2 syslog config command purpose syslog server ip \[ port ] set a syslog backup server syslog source interface {mgmt|ethernet|loopback} interface name specify the source interface syslog syslog server ip \[ port ] \[command] syslog server ip \[ port ] \[purpose] set a syslog backup server \[parameters] parameter description server ip specify the ip address of syslog server port specify the udp destination port of the message \[view] global configuration view \[notes] run command no syslog server ip to delete syslog backup server \[use cases] sonic# configure terminal sonic(config)# syslog 10 250 0 223 syslog source interface {mgmt|ethernet|loopback} syslog source interface {mgmt|ethernet|loopback} interface name \[command] syslog source interface { mgmt | ethernet | loopback } interface name \[purpose] specify the source interface \[parameters] parameter description interface name interface name (eg 0/1) when specify mgmt the interface name is 0 \[view] global configuration view \[notes] run command no syslog source interface to delete syslog source interface \[use cases] sonic# configure terminal sonic(config)# syslog source interface ethernet 0/10
