Show last number of messages in master logging buffer <1-9999> if ${vyos_validators_dir}/numeric --range 1-9999 "$3"; then journalctl --no-hostname --boot --lines "$3"; fi Show contents of current master logging buffer journalctl --no-hostname --boot Show audit logs cat /var/log/audit/audit.log Show contents of all master log files sudo bash -c 'eval $(lesspipe); less $_vyatta_less_options --prompt=".logm, file %i of %m., page %dt of %D" -- `printf "%s\n" /var/log/messages* | sort -nr`' Show listing of authorization attempts journalctl --no-hostname --boot --quiet SYSLOG_FACILITY=10 SYSLOG_FACILITY=4 Show log for Cluster cat $(printf "%s\n" /var/log/messages* | sort -nr) | grep -e heartbeat -e cl_status -e mach_down -e ha_log Show log for Conntrack-sync journalctl --no-hostname --boot --unit conntrackd.service Show log for for Intrusion Detection System Show log for DDOS protection journalctl --no-hostname --boot --unit fastnetmon.service Show log for Dynamic Host Control Protocol (DHCP) Show log for DHCP server journalctl --no-hostname --boot --unit isc-dhcp-server.service Show DHCP client logs journalctl --no-hostname --boot --unit "dhclient@*.service" Show DHCP client log on specific interface journalctl --no-hostname --boot --unit "dhclient@$6.service" Show log for Dynamic Host Control Protocol IPv6 (DHCPv6) Show log for DHCPv6 server journalctl --no-hostname --boot --unit isc-dhcp-server6.service Show DHCPv6 client logs journalctl --no-hostname --boot --unit "dhcp6c@*.service" Show DHCPv6 client log on specific interface journalctl --no-hostname --boot --unit "dhcp6c@$6.service" Show log for Firewall Show log for a specified firewall (IPv6) firewall ipv6-name cat $(printf "%s\n" /var/log/messages* | sort -nr ) | egrep "\[$5-([0-9]+|default)-[ADR]\]" Show log for a rule in the specified firewall firewall ipv6-name ${COMP_WORDS[4]} rule cat $(printf "%s\n" /var/log/messages* | sort -nr) | grep -e "\[$5-$7-[ADR]\]" Show log for a specified firewall (IPv4) firewall name cat $(printf "%s\n" /var/log/messages* | sort -nr ) | egrep "\[$5-([0-9]+|default)-[ADR]\]" Show log for a rule in the specified firewall firewall name ${COMP_WORDS[4]} rule cat $(printf "%s\n" /var/log/messages* | sort -nr) | egrep "\[$5-$7-[ADR]\]" Show log for flow-accounting journalctl --no-hostname --boot --unit uacctd.service Show log for HTTPs journalctl --no-hostname --boot --unit nginx.service Show contents of master log file for image less $_vyatta_less_options --prompt=".log, page %dt of %D" -- /lib/live/mount/persistence/boot/$4/rw/var/log/messages Show contents of all master log files for image eval $(lesspipe); less $_vyatta_less_options --prompt=".log?m, file %i of %m., page %dt of %D" -- `printf "%s\n" /lib/live/mount/persistence/boot/$4/rw/var/log/messages* | sort -nr` Show listing of authorization attempts for image less $_vyatta_less_options --prompt=".log, page %dt of %D" -- /lib/live/mount/persistence/boot/$4/rw/var/log/auth.log Show last changes to messages <NUMBER> tail -n "$6" /lib/live/mount/persistence/boot/$4/rw/var/log/messages | ${VYATTA_PAGER:-cat} Show log for IPoE server journalctl --no-hostname --boot --unit accel-ppp@ipoe.service Show log for Linux Kernel journalctl --no-hostname --boot --dmesg Show log for Link Layer Discovery Protocol (LLDP) journalctl --no-hostname --boot --unit lldpd.service Show log for Network Address Translation (NAT) egrep -i "kernel:.*\[NAT-[A-Z]{3,}-[0-9]+(-MASQ)?\]" $(find /var/log -maxdepth 1 -type f -name messages\* | sort -t. -k2nr) Show log for Next Hop Resolution Protocol (NHRP) journalctl --no-hostname --boot --unit opennhrp.service Show log for Network Time Protocol (NTP) journalctl --no-hostname --boot --unit chrony.service Show log for MACsec journalctl --no-hostname --boot --unit "wpa_supplicant-macsec@*.service" Show MACsec log on specific interface interfaces macsec SRC=$(cli-shell-api returnValue interfaces macsec "$5" source-interface); journalctl --no-hostname --boot --unit "wpa_supplicant-macsec@$SRC.service" Show log for OpenVPN journalctl --no-hostname --boot --unit openvpn@*.service Show OpenVPN log on specific interface interfaces openvpn journalctl --no-hostname --boot --unit openvpn@$5.service Show log for PPPoE interface journalctl --no-hostname --boot --unit "ppp@pppoe*.service" Show PPPoE log on specific interface interfaces pppoe journalctl --no-hostname --boot --unit "ppp@$5.service" Show log for PPPoE server journalctl --no-hostname --boot --unit accel-ppp@pppoe.service Show log for Routing Protocol Show log for OSPF journalctl --boot /usr/lib/frr/ospfd Show log for OSPF for IPv6 journalctl --boot /usr/lib/frr/ospf6d Show log for BGP journalctl --boot /usr/lib/frr/bgpd Show log for RIP journalctl --boot /usr/lib/frr/ripd Show log for RIPng journalctl --boot /usr/lib/frr/ripngd Show log for static route journalctl --boot /usr/lib/frr/staticd Show log for Multicast protocol journalctl --boot /usr/lib/frr/pimd Show log for ISIS journalctl --boot /usr/lib/frr/isisd Show log for NHRP journalctl --boot /usr/lib/frr/nhrpd Show log for BFD journalctl --boot /usr/lib/frr/bfdd Show log for MPLS journalctl --boot /usr/lib/frr/ldpd Show log for Router Advertisement Daemon (radvd) journalctl --no-hostname --boot --unit radvd.service Show log for Simple Network Monitoring Protocol (SNMP) journalctl --no-hostname --boot --unit snmpd.service Show log for Secure Shell (SSH) journalctl --no-hostname --boot --unit ssh.service Show log for SSTP client journalctl --no-hostname --boot --unit "ppp@sstpc*.service" Show SSTP client log on specific interface interfaces sstpc journalctl --no-hostname --boot --unit "ppp@$5.service" Show last n changes to messages <NUMBER> tail -n "$4" /var/log/messages | ${VYATTA_PAGER:-cat} Show last 10 lines of /var/log/messages file tail -n 10 /var/log/messages Show log for Virtual Private Network (VPN) Show log for ALL journalctl --no-hostname --boot --unit strongswan.service --unit accel-ppp@*.service --unit ocserv.service Show log for IPsec journalctl --no-hostname --boot --unit strongswan.service Show log for L2TP journalctl --no-hostname --boot --unit accel-ppp@l2tp.service Show log for OpenConnect journalctl --no-hostname --boot --unit ocserv.service Show log for PPTP journalctl --no-hostname --boot --unit accel-ppp@pptp.service Show log for SSTP journalctl --no-hostname --boot --unit accel-ppp@sstp.service Show log for Virtual Router Redundancy Protocol (VRRP) journalctl --no-hostname --boot --unit keepalived.service Show log for Webproxy journalctl --no-hostname --boot --unit squid.service