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!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...