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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...