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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...