Dashboards & Visualizations

Dashboards - set token to specific value, when drilldowned token is unset

chris1337
Explorer

On the first dashboad I have:

<drilldown>
          <link target="_blank">/app/appname/logon_fail?drill_account=$click.value$</link>
 </drilldown>

On the second dashboard I have a search like:

    <search>
                  <query>index=index EventCode=4625 Account_Name=$drill_account$
</query>
              <earliest>$field1.earliest$</earliest>
              <latest>$field1.latest$</latest>
              <sampleRatio>1</sampleRatio>
            </search>

Now, I try, to get this search running, even when there is no drilldown and the token "drill_account" is not set. Right now, it says "Waiting for input..."

Any suggestions? I tried to set this token to "*", but nothing worked for me.

Thx in advanced. Chris

0 Karma

jeffland
SplunkTrust
SplunkTrust

My guess is you probably didn't define field1.earliest and field1.latest on your target dashboard. I assume you have a time input on your target dashboard. Can you share the simple xml for your target dashboard, at least the parts where this token is defined?

If those are available, what's in the passed token? You can find out via console by doing

var defaultTokenModel = splunkjs.mvc.Components.get("default");
defaultTokenModel.get("drill_account");

If that says "undefined", can you check the url on the target page to see if it contains the token? Also, which version is this?

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...