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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...