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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...