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!

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Get Inspired! We’ve Got Validation that Your Hard Work is Paying Off

We love our Splunk Community and want you to feel inspired by all your hard work! Eric Fusilero, our VP of ...

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...