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!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...