Log¶

Display system logs.

vrouter> show log [max-lines <NUM>]

To filter logs by service, facility, severity and/or VRF:

vrouter> 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:

vrouter> 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 vrouter ntpd[1023]: Soliciting pool server 137.74.28.231
Sep 25 18:34:45 vrouter ntpd[1023]: Soliciting pool server 2001:67c:1560:8003::c7
vrouter> 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 vrouter kernel: systemd-shutdow: 41 output lines suppressed due to ratelimiting
-- Reboot --
Sep 25 11:51:58 vrouter kernel:  #2
Sep 25 11:51:58 vrouter kernel: acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
Sep 25 11:51:58 vrouter kernel: ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11

See also