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
Revered Legend

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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

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 ...