Dashboards & Visualizations

How do I pass token to a dashboard in a default inputc checkbox?

gcusello
Legend

Hi at all,
I have a main dashboard that calls a secondary dashboard where there is a checkbox input.
I'm trying to pass the default value to the checkbox. It correctly runs if I have only one default value, instead it doesn't run if I have more values, it seems like the problem is the coma.

This is my code:
main dashboard drilldown:

<drilldown>
          <link target="_blank">/app/my_app/home_page_overview_servers?TimeFrom=$Time.earliest$&amp;TimeTo=$Time.latest$&amp;Status=low,severe&amp;System_Type=Server Windows</link>
        </drilldown>

Secondary dashboard input checkbox:

<input type="checkbox" token="Status">
  <label>Status</label>
  <choice value="low">Present</choice>
  <choice value="severe">Missing</choice>
  <choice value="medium">Out of Perimeter</choice>
  <default>$Status$</default>
  <prefix>(</prefix>
  <suffix>)</suffix>
  <valuePrefix>Status=</valuePrefix>
  <delimiter> OR </delimiter>
</input>

Anyone encountered a similar problem?

Bye.
Giuseppe

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

HI @cusello,

Have you tried to pass Status like below in drill-down URL?

form.Status=low&form.Status=severe


<drilldown>
           <link target="_blank">/app/my_app/home_page_overview_servers?TimeFrom=$Time.earliest$&amp;TimeTo=$Time.latest$&amp;form.Status=low&amp;form.Status=severe&amp;System_Type=Server Windows</link>
         </drilldown>
0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!