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 April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...

Want to Reduce Costs, Mitigate Risk, Improve Performance, or Increase Efficiencies? ...

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

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...