show logging xml

show logging xml

To display the state of system message logging in an XML format, and to display the contents of the XML syslog buffer, use the show logging xml command in privileged EXEC mode.

Syntax Description

Command Modes

Command History

Usage Guidelines

Examples

show logging xml

This command has no arguments or keywords.

Privileged EXEC

Release

Modification

12.2(15)T

This command was introduced.

 

 

12.2(28)SB

This command was integrated into Cisco IOS Release 12.2(28)SB.

 

 

This command displays the same syslog state information as the standard show logging command, but displays the information in XML format. This command also displays the content of the XML syslog buffer (if XML-formatted buffer logging is enabled).

The following example compares the output of the standard show logging command with the output of the show logging xml command so that you can see how the standard information is formatted in XML.

Router# show logging

Syslog logging: enabled (10 messages dropped, 6 messages rate-limited, 0 flushes, 0 overruns, xml enabled)

Console logging: level debugging, 28 messages logged, xml enabled

Monitor logging: level debugging, 0 messages logged, xml enabled

Buffer logging: level debugging, 2 messages logged, xml enabled (2 messages logged) Logging Exception size (8192 bytes)

Count and timestamp logging messages: disabled

Trap logging: level informational, 35 message lines logged Logging to 10.2.3.4, 1 message lines logged, xml disabled Logging to 192.168.2.1, 1 message lines logged, xml enabled

Log Buffer (8192 bytes):

00:04:20: %SYS-5-CONFIG_I: Configured from console by console

00:04:41: %SYS-5-CONFIG_I: Configured from console by console

Router# show logging xml

<syslog-logging status="enabled" msg-dropped="10" msg-rate-limited="6" flushes="0" overruns="0"><xml>enabled</xml></syslog-logging>

<console-logging level="debugging" messages-logged="28"><xml>enabled</xml></console-logging>

<monitor-logging level="debugging" messages-logged="0"><xml>enabled</xml></monitor-logging>

<buffer-logging level="debugging" messages-logged="2"><xml messages-logged="2">enabled</xml></buffer-logging>

 

Cisco IOS Configuration Fundamentals Command Reference

CF-704

July 2008

Page 28
Image 28
Cisco Systems 12000 series manual Show logging xml, This command has no arguments or keywords Privileged Exec, CF-704