Command Line Reference
System Configuration
Syslog
7 min
syslog view syslog view table 1 syslog view table 1 syslog view true 371,235#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type show syslog \[follow|tail show syslog \[follow|tail number |grep string ] \[command] show syslog \[ follow | tail number | grep string ] \[purpose] show syslog content \[parameters] true 126,480#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[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 true 387,219#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type syslog syslog server ip \[ port ] \[command] syslog server ip \[ port ] \[purpose] set a syslog backup server \[parameters] true 137,469#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[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] true 158,448#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[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
