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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...