Dashboards & Visualizations

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

gcusello
SplunkTrust
SplunkTrust

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
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...