Dashboards & Visualizations

Can't update images , JS or CSS

LuiesCui
Communicator

Hi guys, I'm new to splunk and I really need ur help!
I have some images in my app and I put them in myapp\appserver\static\img. The problem is, if I edit the image after I put it into myapp/appserver/static/img, it will never be updated. However, it will be updated once its file names is changed!
Same thing happens to the js and css in myapp/appserver/static/components/forcedirected. If I want to edit my js and css, I have to create a new app and put the edited js and css in it to make them work. But the js and css in app/appserver/static works just fine, which is really wierd.
I think the problem is that Splunk only loads the files once and won't reload them again. So what should I do to make Splunk reload them again?

0 Karma
1 Solution

s2_splunk
Splunk Employee
Splunk Employee

You can either restart Splunk, or navigate to http://yourhost:yourport/en-US/debug/refresh to reload cached configuration items.

You will also find a link to that URL (EAI Object refresh) if you navigate to http://yourhost:yourport/en-US/info, amongst other useful things.

View solution in original post

s2_splunk
Splunk Employee
Splunk Employee

You can either restart Splunk, or navigate to http://yourhost:yourport/en-US/debug/refresh to reload cached configuration items.

You will also find a link to that URL (EAI Object refresh) if you navigate to http://yourhost:yourport/en-US/info, amongst other useful things.

MuS
Legend

in addition:

  • don't forget to clear the browser cache
  • Bump Splunk on this URI http://yourhost:yourport/en-GB/_bump
  • Restart Splunkweb $SPLUNK_HOME/bin/splunk restart splunkweb this will not end the user session 😉

cheers, MuS

0 Karma

chetanjadav
New Member

It works!!!!! Thanks a lot.....

0 Karma

LuiesCui
Communicator

Restarting splunk, debug/refresh, clearing browser cache work on the js and css in app/appserver/statics only, not on those in myapp/appserver/static/components/forcedirected. But restarting splunkweb works at last! Thank you both!

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

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 ...