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!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...