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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...