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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...