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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...