show log

Display the system or kernel log.

Syntax

show log [all] [clear] [end] [kernel] [last] [module <modname>] [priority <level] [utc] [wait] [where <string>]

Syntax Description

all

Show the entire system log buffer instead of only the most recent entries.

clear

Clear the log buffer after displaying it.

end

Start at the end of the buffer (implies the wait option).

kernel

Display the kernel log instead of the system log. All other options are ignored if kernel is specified.

last

Show on the most recent log entries.

module

Display only the log entries from the specified software module.

priority

Display only entries of the specified priority or higher.

utc

Show entry times in UTC rather than local time.

wait

Wait for new records. The command can be aborted with Control-C.

where

Display only records matching the specified string or regular expression.

Defaults

Only the most recent entries are displayed by default.

Usage Guidelines

This command displays the contents of the system or kernel log buffer in memory.

The log buffer is circular; when the buffer is full, older entries are deleted as new entries are added.

The system log is also written to non-volatile storage which can be displayed using the show syslog slog command.

The where option can specify either a simple string or a regular expression. A regular express must be enclosed within “/”. The entire string must be enclosed in quotes if it contains whitespace.

Examples

show log
show log where 00:53:19:A3:89:F1
show log module pkteng

Last updated