All Apps and Add-ons

| refresh entity=savedsearch not working (Add-on Debug Refresh)

robertlynch2020
Influencer

@MuS

Thanks for you app first - great stuff 🙂

I am running
| refresh entity=savedsearch
but I am getting
External search command 'refresh' returned error code 1. . any ideas would be great thanks 🙂

@mirazgheib

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi robertlynch2020,

enable debugging like in the documentation written:

Debug

If needed you can enabled debugging to splunkd.log in the script refresh.py by
setting myDebug='yes' on line 6

If this does not provide any useful message, try running the script from the CLI like this:

$SPLUNK_HOME/bin/splunk cmd python $SPLUNK_HOME/etc/apps/TA-debug-refresh/bin/refresh.py

Hope this helps ...

cheers, MuS

0 Karma

MuS
SplunkTrust
SplunkTrust

Update

Looks like I'm not good in error capturing, the endpoint actually reloads - you can see it in the debug logs. But something after the reload makes the script think there was an error .... oh well debugging time ¯\_(ツ)_/¯

cheers, MuS

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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...