Dashboards & Visualizations

running a custom command via a button

zubairaizatron
Explorer

hi guys

i want to run a custom splunk command via a button i can put on the dashboard. i want to do it via a visualization and not editing the xml. I want it work like a panel that can be added via the add panel option on the dashboard. i know it should be done via the visualizaions.js file in a custom visualization but i would like some help on how to write the visualization_source.js file for it.

 

So the logic is 

button - visualization.js - custom command 

im assuming the command will have to be run via REST

 

any help is appreciated

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...