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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...