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!

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