Dashboards & Visualizations

Can we reload the JavaScript in an app without restarting Splunk?

vkrishnachand
New Member

Hi,

I have an app in Splunk version 6.4. My app uses JavaScript and a CSS file. As per my knowledge if I change the logic of JavaScript only on Splunk restart the change in JavaScript will be reflected in dashboard.

Is there any way to reflect the change in java script without splunk web restart?

0 Karma

mayurr98
Super Champion

hey @vkrishnachand
Try this
The easiest method is to bump the server.

 https://<yourSplunk>/en-US/_bump

Click that button. Every click increases the bump, which effectively breaks all caching in the webserver. No need to restart! If you find it doesn't work as expected, run also the debug/refresh endpoint.

https://<yourSplunk>/debug/refresh

And if that doesn't work, restart the web service only.

$SPLUNK_HOME/bin/splunk restart splunkweb

And if that doesn't work, restart Splunk.

Let me know if this helps you!

0 Karma

harsmarvania57
Ultra Champion

Hi,

Can you please try https://<SH>:8000/en-US/_bump and then click on Bump Version and then try to reload your app dashboard/page, it will pick up new javascript without restart.

0 Karma
Get Updates on the Splunk Community!

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

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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