Dashboards & Visualizations

View an XML in browser

rlautman
Path Finder

One of the users of a Splunk deployment within our company has come up with a new request for viewing XMLs - what they would ideally like is the ability to view an XML within a webpage view - for example the view you would get if you opened an XML document in internet explorer

I have looked at the xmlutils app but I don't believe that this will deliver this view.

Is what our user requested possible? If so is anyone aware of an app or script that would facilitate this?

Tags (3)
0 Karma

zeroactive
Path Finder

First thing to do is to replace the < and > characters with "<" and ">" before displaying in the web page. That assumes though that you can preprocess the XML before adding it to the HTML page. It's also likely a good idea to wrap the XML text in a <p></p> tag set to retain the format / spacing of the XML for display purposes.

Update: Follow the same instructions above, but also wrap your XML in standard HTML tags, don't forget the <p> tags too, and then save the data to an .html file.

0 Karma

zeroactive
Path Finder

See my update for further details for your situation.

0 Karma

rlautman
Path Finder

Sorry I have explained this a bit poorly - the user wishes to view the xml in a separate webpage - such as the view you would see if you extracted a raw XML from Splunk, saved it in notepad and opened this document in a browser such as Internet explorer

0 Karma

zeroactive
Path Finder

When you say "the ability to view an XML within a webpage view", do you mean a page within Splunk? I'm guessing yes, but which type of page? A dashboard or report? Or inline in the search results view? Or in a search results table view?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Laser Bananas and Edge Hubs: Exploring Operational Technology (OT) Data Through a ...

  OT is a different environment to traditional IT and can have interesting challenges when interfacing the ...

Event Series: Mastering AI Tokenomics and Splunk Agent Observability

Beyond the Black Box: Correlating AI Performance and Tokenomics with Splunk Agent Observability   As ...