Security

What are the reasons to clear the search-head splunkweb cache ?

yannK
Splunk Employee
Splunk Employee

In the past, I solved browser javascript issues by clearing the web server cache on the search-head.

  1. go to the search-head in $SPLUNK_HOME/var/run/splunk/appserver
  2. clear the folder (can be done while splunk is running)
  3. go to the web interface, and refresh
  4. if needed, clear the browser cache too
  5. verify that the server cache has been repopulated on the search0head (sanity check)

It was because an upgrade change the javascripts, but the clients was still using the old one.
When can I tell that It's useful to do so ?

Tags (2)
1 Solution

jkat54
SplunkTrust
SplunkTrust

https://answers.splunk.com/answers/24407/application-js-not-loading.html

Try using the bump endpoint, and then pressing ctrl + f5 in your browser to pull all web resources from the server.

 http://<your host and port>/en-US/_bump

You'll want to do this anytime you modify items that can be cached... (pretty much everything on the page)... images, js, cookies, html, etc.

View solution in original post

jkat54
SplunkTrust
SplunkTrust

https://answers.splunk.com/answers/24407/application-js-not-loading.html

Try using the bump endpoint, and then pressing ctrl + f5 in your browser to pull all web resources from the server.

 http://<your host and port>/en-US/_bump

You'll want to do this anytime you modify items that can be cached... (pretty much everything on the page)... images, js, cookies, html, etc.

Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...