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!

Splunk ITSI & Correlated Network Visibility

  Now On Demand   Take Your Network Visibility to the Next Level In today’s complex IT environments, ...

Leveraging Detections from the Splunk Threat Research Team & Cisco Talos

  Now On Demand  Stay ahead of today’s evolving threats with the combined power of the Splunk Threat Research ...

New in Splunk Observability Cloud: Automated Archiving for Unused Metrics

Automated Archival is a new capability within Metrics Management; which is a robust usage & cost optimization ...