diff options
author | iTeV <github@fs0ciety.xyz> | 2019-04-14 15:32:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-14 15:32:08 +0200 |
commit | 0ad923a7470ed7f79f06750367ce5ed55ab442ef (patch) | |
tree | 754d4c2b92baf50ea5ce4fe8b4ab833c284cfd0a /docs/system/syslog.rst | |
parent | 31247afcba724a4ebd6ab545ccfff29c7706b8d8 (diff) | |
parent | 32096506f68beb493ad207a9a8018681b11de203 (diff) | |
download | vyos-documentation-0ad923a7470ed7f79f06750367ce5ed55ab442ef.tar.gz vyos-documentation-0ad923a7470ed7f79f06750367ce5ed55ab442ef.zip |
Merge pull request #1 from vyos/master
update fork
Diffstat (limited to 'docs/system/syslog.rst')
-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. |