Dashboards & Visualizations

App development - live reload

himynamesdave
Contributor

Calling all Splunk app devs!

Are you using any live reloading tools with the Splunk server? If so, which would you recommend?

I'm tired of having to restart the server each time to test code changes...

Tags (3)
0 Karma

sideview
SplunkTrust
SplunkTrust

If you have Sideview Utils installed already, bookmark its "Freshmaker" view.

Where it is in the app navigation menu depends on what version you have. If you have the most recent (3.0), it's at "Tools > Other Tools > The FreshMaker"

or you can just go to : /en-US/apps/sideview_utils/refresh_entities

Ayn is right of course that you can hit the debug/refresh URL http://yourserver:8000/debug/refresh and you can hit it for just one particular entity with URL's like http://yourserver:8000/en-US/debug/refresh?entity=/admin/views. However the core debug/refresh endpoint can get really slow. On my main windows dev server just hitting the views endpoint takes 22 seconds at the moment.

The Sideview Utils FreshMaker, as of version 3.0 implements its own little python controller so that you can refresh individual endpoint and the request only takes a fraction of a second.

And in more recent versions of Splunk you can indeed hit the app logo to refresh the views. However in my experience it's not 100% reliable and even that is too long for me to wait. My test-tweak iteration cycle drops down to seconds when I'm troubleshooting and a five second wait between page reloads doesn't work for me as an app developer.

Download Sideview Utils here - http://sideviewapps.com/apps/sideview-utils

Ayn
Legend

What kind of code changes are you doing restarts for? If it's just for reloading views etc you just need to reload the application like @somesoni2 says. You do this by either accessing the app's base URL, or by clicking on the app text/image in the upper left corner in the web interface.

Other stuff can often be reloaded by hitting the /debug/refresh endpoint in splunkweb, i.e. http://yourserver:8000/debug/refresh

somesoni2
SplunkTrust
SplunkTrust

If you're just changing the views, you don't need a restart. Relaunching the application should be sufficient.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...