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!

Building Reliable Asset and Identity Frameworks in Splunk ES

  Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...