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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...