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!

Splunk APM & RUM | Upcoming Planned Maintenance

There will be planned maintenance of the streaming infrastructure for Splunk APM and Splunk RUM in the coming ...

Part 2: Diving Deeper With AIOps

Getting the Most Out of Event Correlation and Alert Storm Detection in Splunk IT Service Intelligence   Watch ...

User Groups | Upcoming Events!

If by chance you weren't already aware, the Splunk Community is host to numerous User Groups, organized ...