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
Get Updates on the Splunk Community!

.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 ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...