Dashboards & Visualizations

Convert Splunk HTML back to XML

gokool2u
Explorer

Hi splunkers,

I have comverted an XML dsahboard into HTML to make some customization in styles. Now I would like to convert my HTML dashboard back to XML one. Is that possible?

0 Karma

rjthibod
Champion

It is not possible.

Depending on the styles changes, you will have to turn those changes into a custom CSS file (and maybe JS file) that you load in the original Simple XML dashboard.

In SimpleXML dashboards, you can extend them by updating the <form> element at the top of the file. For example, the following will load the two JS files and the once CSS file any time the dashboard is loaded.

<form script="custom.js,custom2.js" stylesheet="custom.css">

For an application, including files "dashboard.css" and "dashboard.js" in the directory "appserver/static/" of your app will result in these two files being automatically loaded for any SimpleXML dashboards in your app.

0 Karma

inventsekar
SplunkTrust
SplunkTrust

from http://dev.splunk.com/view/webframework-developapps/SP-CAAAEM2

To create an HTML version of the dashboard, click Create New. Or, to replace and write over the existing dashboard, click Replace Current.
Note Replacing the current dashboard makes the HTML version of the dashboard visible to users and hides the Simple XML version. You can revert to the Simple XML dashboard by deleting the HTML file. The file locations depend on the permissions (see below).

The location of the HTML file depends on the permissions you chose for the dashboard:

Private: $SPLUNK_HOME/etc/users/username/appname/local/data/ui/html
Shared: $SPLUNK_HOME/etc/apps/appname/local/data/ui/html

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

vinaykata
Path Finder

Thanks Inventseker!! This worked for me

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...