Log¶

The show log command can be used to display logs. The output can be filtered by service, facility, severity and/or VRF:

vsr> show log service ntp vrf main level greater-or-equal warning
Feb 25 16:45:21 vsr systemd[1]: Starting chrony.service - chrony, an NTP client/server...
Feb 25 16:45:21 vsr systemd[1]: Started chrony.service - chrony, an NTP client/server.
Feb 25 16:45:25 vsr chronyd[11459]: System clock wrong by 1.233166 seconds
Feb 25 16:45:27 vsr chronyd[11459]: System clock was stepped by 1.233166 seconds
vsr> show log facility daemon max-lines 5
Feb 25 16:45:21 vsr systemd[1]: Started chrony.service - chrony, an NTP client/server.
Feb 25 16:45:21 vsr systemd[1]: Reached target time-sync.target - System Time Synchronized.
Feb 25 16:45:25 vsr chronyd[11459]: Selected source 10.11.0.22 (ntp.6wind.com)
Feb 25 16:45:25 vsr chronyd[11459]: System clock wrong by 1.233166 seconds
Feb 25 16:45:27 vsr chronyd[11459]: System clock was stepped by 1.233166 seconds

The follow parameter can be used in addition to any other parameters to display logs continuously.

Note

Each service has its own logging policy with regards to syslog facilities and severities. Refer to the services’ documentation for details.

See also