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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...