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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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