Splunk Enterprise

Help on drilldown token

jip31
Motivator

hello

as you can see, I use a token in order to drilldown from a table panel to another table panel

        <drilldown>
          <set token="host">$click.value$</set>
        </drilldown>
      </table>
    </panel>
  </row>
  <row>
    <panel>
      <table>
        <title>% de paquets VMware perdus</title>
        <search>
          <query>`index`(sourcetype=netproc_tcp" host=$host$
 

but when I refresh te dashboard my second panel says "waiting for input"

jip31_0-1656220535542.png

is there a solution to always display the events in the second panel and to drilldown when I click on the token field?

thanks

 

 

Labels (1)
Tags (1)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

At the start of your XML add an <init> section and set a default for the host token, i.e.

<form>
  <init>
    <set token="host">*</set>
  </init>
...

so when the dashboard first loads, or is refreshed, the default for the 'host' token will be all hosts and the second panel will show all hosts.

 

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

At the start of your XML add an <init> section and set a default for the host token, i.e.

<form>
  <init>
    <set token="host">*</set>
  </init>
...

so when the dashboard first loads, or is refreshed, the default for the 'host' token will be all hosts and the second panel will show all hosts.

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jip31,

to be more sure, I'd need to see the search, anyway, having a table, please try to use:

<set token="host">$row.host$</set>

$click.value$ is for drilldown from graphs.

Ciao.

Giuseppe

0 Karma

jip31
Motivator

Hi

This returns an empty result...

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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