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!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...