Dashboards & Visualizations

How can we include "Stop" button on custom app?

antonioformato
Explorer

Hi all,
using Splunk 6.1.1.

In custom app, how can I include stop/finalize buttons in my dashboards?

Thank you
Regards
AF

loggar
Explorer

convert dashboard to HTML...

put button somwhere in it ...

 <button class="btn btn-primary stop_search_btn">Stop</button>

and then add javascript code ...

$('.stop_search_btn').click(function() {
var mainSearch = mvc.Components.getInstance("search1");
mainSearch.finalize()
});

haripriyasarve1
Explorer

Thanks, I tried it worked for me.

0 Karma

DUThibault
Contributor

Can't we just add an <html> element to the <dashboard> instead of converting it to html? And, pardon my ignorance, how does one attach the Javascript to the button? I tried adding a <javascript> element after or inside the <button> without any success.

0 Karma

tormodbp
Path Finder

What is the purpose of this stop/finalize button?

Cheers,

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 ...