Dashboards & Visualizations

Prevent Dashboard Source XML from being Displayed on Front End

bruceclarke
Contributor

I've noticed that some of my dynamic dashboards are displaying the source XML directly on the front end. The dashboard works exactly as I expect it to, but I see a "Description" panel that displays the entire XML of the page.

I don't want people using this dashboard to see the source XML. Is there a way I can prevent it from showing up? It's also inconsistent; I don't see the XML on other dynamic dashboards.

Tags (2)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

I'm guessing you have reused some of the code from the Splunk 6.x Dashboard Examples App which does include a SourceViewer in JavaScript. Make sure you're not importing that into your dashboards and the description/source panel should disappear.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

I'm guessing you have reused some of the code from the Splunk 6.x Dashboard Examples App which does include a SourceViewer in JavaScript. Make sure you're not importing that into your dashboards and the description/source panel should disappear.

martin_mueller
SplunkTrust
SplunkTrust

If you copied over the entire JS from the examples app then there must have been a reason to need it... so check what that reason was before deleting stuff.

Deleting the folder on its own is not a good idea, it'll be referenced somewhere - my guess is dashboard.js if you also copied that from the examples app.

0 Karma

bruceclarke
Contributor

Yeah, I definitely see the javascript in the apps static content. Do I just need to remove the "srcviewer" folder from there, then restart the app? Or is there some configuration file I should change?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...