Dashboards & Visualizations

How to include an external script in XML dashboards?

kartik13
Communicator

Hi ,

I know its a repeat question, but the requirement is different.
I am trying to include a script in XML dashboards and want to define a search which will populate a set of results and I want to embed those results in html tag in XML. Is that possible?

0 Karma

DavidHourani
Super Champion

yeah, you can either convert your page to HTML and write your code there or create an HTML panel and include your HTML code inside it.

0 Karma

kartik13
Communicator

I don't want to convert my xml into HTML dashboards ,i have to create an html panel in XML itself and use that js file . the only question is can i use search managers or any other thing to have search results in js file only for xml dashboards

0 Karma

DavidHourani
Super Champion

Yes, you can write your code in the HTML panel, I mean it will use all the libraries imported by the page so you can use search managers. Also you can add some JS into appserver/static and use them. Try looking at http://dev.splunk.com/

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...