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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...