Getting Data In

How to call a Rest/Json service on HTML button click action in Drill down Dashboard Tabel?

muguniya
Explorer

We have rest/json/http services and need to make a call from Drill Down Dashboard button click event. Please let me know is there a way to make a call to services using javascript?

0 Karma
1 Solution

rsennett_splunk
Splunk Employee
Splunk Employee

"Drilldown Dashboard Button Click Event" is kind of mixing metaphors... so it's hard to know exactly what you want.

If you want to interact with a web site or web service in the form of a URL you can do something like this from a drilldown:

<!-- $click.value$ captures the value clicked by the user -->
         <!-- and passes it to the website as a query parameter        -->
         <drilldown>          
           <link>
              http://apps.splunk.com/integrated_search/?q=$click.value$
           </link>
         </drilldown>

Check out the doc here and perhaps you'll see an example that matches your question. OR... show us your Dashboard source code.

http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/Dynamicdrilldownindashboardsandforms#Form_link...

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!

View solution in original post

0 Karma

rsennett_splunk
Splunk Employee
Splunk Employee

"Drilldown Dashboard Button Click Event" is kind of mixing metaphors... so it's hard to know exactly what you want.

If you want to interact with a web site or web service in the form of a URL you can do something like this from a drilldown:

<!-- $click.value$ captures the value clicked by the user -->
         <!-- and passes it to the website as a query parameter        -->
         <drilldown>          
           <link>
              http://apps.splunk.com/integrated_search/?q=$click.value$
           </link>
         </drilldown>

Check out the doc here and perhaps you'll see an example that matches your question. OR... show us your Dashboard source code.

http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/Dynamicdrilldownindashboardsandforms#Form_link...

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!
0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...