System information
12-459
Cisco SN 5428-2 Storage Router Software Configuration Guide
78-15471-01
Chapter 12 Command Line Interface Reference
show logging
show logging
To display the logging table routing rules or to display contents of the log file, use the show logging
command.
show logging [[all | last nn] [match expression]|size]
Syntax Descriptions
Defaults None.
Command Modes Administrator or Monitor.
Command History
Usage Guidelines
• Use the show logging command to display the routing rules in the logging table, which is used to
route event messages to the appropriate destinations based on the message level and facility.
• Use the match expression parameters to display messages in the log file that match the specified
string or regular expression. You can search the entire log file for matching messages or restrict the
search to the last nn number of messages. If the match keyword is used without the all or last
keywords, the search is made against the last 20 entries in the log file.
Examples The following is example output from the show logging command:
[SN5428-2A]# show logging
Logging is enabled
Index Level Priority Facility Route
1 notice 5 all all
2 info 6 all logfile
3 debug 7 HA rslog
Syslog host is enabled, ip-address is 10.1.1.144
all (Optional) Display all log file entries.
last nn (Optional) Display the last nn lines from the current log file.
match expression (Optional) Display all entries that match the specified string or regular
expression. String matching is case-sensitive. By default, the last 20 log
entries are searched.
size (Optional) Display the number of messages in the log file and the size of the
log file, in bytes.
Release Modification
3.2.1 This command was introduced.