Dashboards & Visualizations
Highlighted

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

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
Highlighted

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

SplunkTrust
SplunkTrust

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
Highlighted

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

SplunkTrust
SplunkTrust

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