Dashboards & Visualizations

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

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

Champion

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
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!