Dashboards & Visualizations

Displaying XML in Results

chintanmistry
New Member

Hello,
How can I format the Splunk search results to show XML in formatted manner and not look like a raw data?
Currently, it displays like this:

<ArrayOfError xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">  <Error>    <ErrorCode>600006</ErrorCode>    <ErrorMessage>Current Status of Item Does Not Permit Updates</ErrorMessage>    <ErrorSource>Web Service</ErrorSource>  </Error></ArrayOfError>

I want to display it like below which is more readable:

<ArrayOfError xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <Error>
      <ErrorCode>600006</ErrorCode>
      <ErrorMessage>Current Status of Item Does Not Permit Updates</ErrorMessage>
      <ErrorSource>Web Service</ErrorSource>
   </Error>
</ArrayOfError>
Tags (3)
0 Karma

vasanthmss
Motivator
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...