Dashboards & Visualizations

Can we trigger external scripts from dashboard submit button?

admin560011
Observer

We have already dashboard in splunk cloud platform. I want to trigger external script from dashboard panel. Once I click the submit button, script should be executed and should display the output in dashboard panel.

It is to automate some day-to-day activities to stop manual interventions. Ex. if dashboard panel shows any application error,then we should restart the application by external script.

Please let me know, can we do this from splunk dashboard.

 

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust
0 Karma

Brausepaule
Path Finder

Hi,

 

maybe a simple linklist may help. Use the input to create a token on condition and have an external serach waiting for that token to be anything else than null

<row>
<panel>
<input type="link" token="field0">
<label>&lt;your label here&gt;</label>
<choice value="trigger_stuff">Trigger Stuff</choice>

<change>
<condition value="trigger_stuff">
<set token="tok_trigger_action">"aloha"</set>

</condition>
</change>
</input>
</panel>
</row>

<search depends="$tok_trigger_action$">
<query>
do what you want here
</query>
<done>
<unset token="tok_trigger_action"></unset>
<unset token="form.field0"></unset>
</done>
</search>

 

you can throw some css styles on it to make it look like a button 😉

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...