Splunk Search

How to run bashscript when user hit bottom on dashboard?

indeed_2000
Motivator

Hi 

I want to put a bottom on a dashboard that when I hit it, run bashscript on splunk server, and show this message when it’s done “script executed successfully”.

 

Any idea?

Thanks

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Have a look at creating a custom command.

0 Karma

indeed_2000
Motivator

@ITWhisperer would you please give me an example?  i mean sample dashboard that run script on this path /tmp/myscript.sh

 

Thanks

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It isn't really a dashboard feature - you might be able to write a custom command to do what your script does and set up a panel at the end of your dashboard which uses the custom command. I do not have any examples of this.

0 Karma
Get Updates on the Splunk Community!

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering.  Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...