Splunk Search

Passing search result fields into a drilldown search through a drilldown link?

ashwinipatil198
Explorer

Hi,

I have a parent dashboard search which display a chart(status) by hostname, module
eg:

hostname Module1 Module2 Modulen
Ahost Y Y N
Bhost N N N

Here hostname is (zone+host) combination.
Now on click of any of status above(Y/N) a child dashboard is linked in drilldown which shows detailed status.
The parent search has values linked to fields module=Module1 and host=Ahost(zone+host) when i click on Y(leftmost corner)

On click of Y(leftmost corner), I need to pass parameters module and zone to drilldown search in the drilldown link:
eg:
module=Module1
zone=A

I tried using click.value but that only passes the values from the dashboard to the drilldown search.
Whereas i need to pass the field values from search to the drilldown search. Is it possible in Splunk? If yes, how?

Kindly suggest.

ashwinipatil198
Explorer

I was able to achieve this through javascript.

Get and set token values directly:

You might need to access token values directly. This example shows how to get and set the value for a token called $mytoken$ in the default token model:

// Access the "default" token model
var tokens = mvc.Components.getInstance("default");

// Retrieve the value of a token $mytoken$
var tokenValue = tokens.get("mytoken");

// Change the value of a token $mytoken$
tokens.set("mytoken", "this is the new value");

http://dev.splunk.com/view/SP-CAAAEW3

0 Karma
Get Updates on the Splunk Community!

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 ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...