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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...