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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...