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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...