Dashboards & Visualizations

How do you add JavaScript file to Splunk dashboard?

venu08673
New Member

Hi,

I am trying to load the JS file in my XML dashboard but I am unable to get the JS data in the XML dashboard.

I am facing difficulties.

I placed the file in the path (appname/appserver/static) and I mentioned in XML.

I am not getting the JS Data.

Please let me know what I need to do.

Thanks and Regards,
Venu

0 Karma
1 Solution

elliotproebstel
Champion

After updating a javascript file that is already being used, I am able to reload the code through a bump on the search head by visiting this page:
https://my.search.head/en-US/_bump and clicking on the bump button.

If that isn't sufficient, you may need to debug/refresh:
https://my.search.head/en-US/debug/refresh

View solution in original post

0 Karma

elliotproebstel
Champion

After updating a javascript file that is already being used, I am able to reload the code through a bump on the search head by visiting this page:
https://my.search.head/en-US/_bump and clicking on the bump button.

If that isn't sufficient, you may need to debug/refresh:
https://my.search.head/en-US/debug/refresh

0 Karma

venu08673
New Member

i placed the JS file in the path (appname/appserver/static) and i mentioned in XML like dashboard script="filename.js"

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 ...