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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...