diff options
author | hagbard-01 <39653662+hagbard-01@users.noreply.github.com> | 2019-04-11 15:59:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-11 15:59:13 -0700 |
commit | 32096506f68beb493ad207a9a8018681b11de203 (patch) | |
tree | 754d4c2b92baf50ea5ce4fe8b4ab833c284cfd0a /docs | |
parent | e838b4e34227fd4dcba3e8bf591289b747dbcbcd (diff) | |
parent | a991b61be4e426f3c1f5b2b98ce5e59d3b14a56b (diff) | |
download | vyos-documentation-32096506f68beb493ad207a9a8018681b11de203.tar.gz vyos-documentation-32096506f68beb493ad207a9a8018681b11de203.zip |
Merge pull request #31 from rebortg/improve/syslog
add show syslog and show syslog from image
Diffstat (limited to 'docs')
-rw-r--r-- | docs/system/syslog.rst | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/docs/system/syslog.rst b/docs/system/syslog.rst index dbf7420a..8acbc237 100644 --- a/docs/system/syslog.rst +++ b/docs/system/syslog.rst @@ -112,3 +112,66 @@ logged in, no messages are being displayed. .. code-block:: sh set system syslog user <LOCAL_USERNAME> facility <FACILITY> level <LEVEL> + +Show logs +^^^^^^^^^ + +Display log files on the console + +.. code-block:: sh + + vyos@vyos:~$ show log + Possible completions: + <Enter> Execute the current command + all Show contents of all master log files + authorization Show listing of authorization attempts + cluster Show log for Cluster + conntrack-sync + Show log for Conntrack-sync + dhcp Show log for Dynamic Host Control Protocol (DHCP) + directory Show listing of user-defined log files + dns Show log for Domain Name Service (DNS) + file Show contents of user-defined log file + firewall Show log for Firewall + https Show log for Https + image Show logs from an image + lldp Show log for Lldp + nat Show log for Network Address Translation (NAT) + openvpn Show log for Openvpn + snmp Show log for Simple Network Monitoring Protocol (SNMP) + tail Monitor last lines of messages file + vpn Show log for Virtual Private Network (VPN) + vrrp Show log for Virtual Router Redundancy Protocol (VRRP) + webproxy Show log for Webproxy + +Show contents of a log file in an image +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Log messages from a specified image can be displayed on the console: + +.. code-block:: sh + + $ show log image <image name> + $ show log image <image name> [all | authorization | directory | file <file name> | tail <lines>] + +Details of allowed parameters: + +.. list-table:: + :widths: 25 75 + :header-rows: 0 + + * - all + - Display contents of all master log files of the specified image + * - authorization + - Display all authorization attempts of the specified image + * - directory + - Display list of all user-defined log files of the specified image + * - file <file name> + - Display contents of a specified user-defined log file of the specified image + * - tail + - Display last lines of the system log of the specified image + * - <lines> + - Number of lines to be displayed, default 10 + + +When no options/parameters are used, the contents of the main syslog file are displayed. |