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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...