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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...