Splunk Dev

Output XML formatting

A_bhijeet
Loves-to-Learn

Hello everyone I am very new to splunk. 

I have created an app in splunk in which there's a Dashboard which fetches me an XML whenever I enter the order number, now the result I am getting is fine, but the the output XML is not in proper format. it comes in asingle line, is there a way to manipulate my result in a proper format?

for example. 

i want it like 

orderStatusReply xmlns="blabla.blabla" transactionId="blabla" timestamp="2020-07-09T15:49:36.649Z">
<result>
<resultType>success</resultType>
</result>
<orderStatus type="history">
<customer mailConfirmationRequired="false">
<customerNumber>blabla blabla</customerNumber>
<customerName>blabla</customerName>
<printReceipt>blabla</printReceipt>
</customer>
<centerNumber>blabla</centerNumber>
<containsItemPaymentAdjustment>false</containsItemPaymentAdjustment>
<orderNumber>1111111111111111</orderNumber>
<referenceNumber>11111111111111111111</referenceNumber> ..

...

but it comes like 

orderStatusReply xmlns="blabla.blabla" transactionId="blabla" timestamp="2020-07-09T15:49:36.649Z"><result><resultType>success</resultType></result><orderStatus type="history"><customer mailConfirmationRequired="false"><customerNumber>blabla blabla</customerNumber><customerName>blabla</customerName><printReceipt>blabla</printReceipt>
</customer><centerNumber>blabla</centerNumber><containsItemPaymentAdjustment>false</containsItemPaymentAdjustment<orderNumber>1111111111111111</orderNumber><referenceNumber>11111111111111111111</referenceNumber>

0 Karma
Get Updates on the Splunk Community!

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...

Index This | What goes up and never comes down?

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

Splunkers, Pack Your Bags: Why Cisco Live EMEA is Your Next Big Destination

The Power of Two: Splunk &#43; Cisco at "Ludicrous Scale"   You know Splunk. You know Cisco. But have you seen ...