home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

show log

Displays the contents of a log file or files.

show log [ all | authorization | directory | file file-name | tail [ lines ] | component ]
all
Displays the contents of all master log files.
authorization
Displays all authorization attempts.
directory
Displays a listing of all user-defined log files.
file file-name
Displays the contents of the specified user-defined log file.
tail
Displays the last 10 lines of the system log.
lines
The number of lines that tail displays at the end of the system log.
component
A specific system component. The component is any of the following:
  • dhcp—Displays the log for dhcp
  • dns—Displays the log for dns
  • firewall—Displays the log for firewall
  • https—Displays the log for https
  • image—Displays the log from an image
  • nat—Displays the log for nat
  • openvpn—Displays the log for openvpn
  • snmp—Displays the log for snmp
  • vpn—Displays the log for vpn
  • vrrp—Displays the log for vrrp

Operational mode

Use this command to display the contents of a log file or files.

When used with no option, this command displays the contents of the main system log, which is the default log to which the system writes syslog messages.

When used with the authorization option, this command displays all authorization attempts.

When used with the directory option, this command displays a list of all user-defined log files. Syslog messages can be written to these or the main system log file. User-specified log files are defined by using the system syslog file <filename> facility <facility> level <level>.

When filefile-name is specified, this command displays the contents of the specified user-defined log file.

When used with the tail option, this command displays the last 10 lines of the system log file and continues to display log messages as they are added to the log file. This command can be interrupted by using <Ctrl+C>.

When lines is specified, the last lines lines of the system log are to be displayed.

When component is specified, log messages that relate to that component are displayed.