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 the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...