Previous page Next page

show logging

Displays contents of logging buffer.

Syntax
show logging 
 
   [ [ { first | last } <count> ] | all ]
 
   [ level <name> ]
 
   [ | { include | exclude | begin } <exp> ] 
 
   [ > <url> ]
 
Arguments
Prerequisites

System operations mode, login-level access.

Occurrence

Use once.

Default

last100

debug and above (all levels)

Description

The show logging command displays all messages up to a specified number, or only those messages that match a regular expression. If exp contains spaces, it should be enclosed in quotes (“ ”).

Use the count argument with the keyword first to specify the number of lines in the log to display, beginning with the oldest message in the buffer.

Use count with the last keyword to specify a number of messages beginning with the most recent message in the buffer.

Use the keyword all to specify all lines at the specified level.

When you specify level, include an equals sign as the first character to limit the display to only the named level.Otherwise, the output will contain all messages whose level is at or higher than the level specified.

For example, if you specify level as alert, the output will contain messages whose level is either alert or emergency. If you specify level as =alert, the output will contain only those messages whose level is alert.

See the logging buffered command.

See the debug on command for subsystem names, which can be used for match expressions.

You can pipe the command through one of the following filters:

The vertical-line pipe character | is required when a filter is used.

You can send the output to a remote file location, by piping the display to a remote URL (leading > required). See the copy command for URL syntax.


Previous page Next page