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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...