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
.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!