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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...