Log¶
Display system logs.
vsr> show log [max-lines <NUM>]
To filter logs by service, facility, severity and/or VRF:
vsr> show log [service <NAME>] [facility <NAME>] [level <LEVEL>] [vrf <NAME>]
Note
Each service has its own logging policy with regards to syslog facilities and severities. Refer to the services’ documentation for details.
Example:
vsr> show log service ntp vrf main max-lines 2
-- Logs begin at Tue 2018-09-25 18:23:28 CEST, end at Tue 2018-09-25 18:34:45 CEST. --
Sep 25 18:34:37 vsr ntpd[1023]: Soliciting pool server 137.74.28.231
Sep 25 18:34:45 vsr ntpd[1023]: Soliciting pool server 2001:67c:1560:8003::c7
vsr> show log facility kernel level greater-or-equal warning
-- Logs begin at Tue 2018-09-25 18:23:28 CEST, end at Tue 2018-09-25 18:34:45 CEST. --
Sep 25 15:28:27 vsr kernel: systemd-shutdow: 41 output lines suppressed due to ratelimiting
-- Reboot --
Sep 25 11:51:58 vsr kernel: #2
Sep 25 11:51:58 vsr kernel: acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
Sep 25 11:51:58 vsr kernel: ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
See also
The command reference for details about the API.
The Remote Log Filtering Configuration for details about syslog facilities and severities.