Dashboards & Visualizations

Passing tokens from single value

cjohnson_vectra
New Member

I have a fixed view that shows the number of devices in a given state for a 24hour window:

alt text

I would like to be able to drill into one of these and jump to another view/dashboard that shows more of the details around the values. The challenge I am running in to is that I am passing a token 'hostseverity' and the dashboard seems to accept the token, but it does not return anything in the results pane:

alt text

Now if I go in and change the severity manually, the results will populate as expected. The code I am using for the single value is:

    <option name="drilldown">all</option>
    <drilldown>
      <link>hosts?form.hostseverity=High</link>
    </drilldown>
0 Karma

cjohnson_vectra
New Member

ryandg, in gathering the information for you request, I identified the source of my issue.

The code for the input that was on the 'hosts' page was teh following:

    <input type="dropdown" token="hostseverity" searchWhenChanged="true">
      <label>Severity</label>
      <choice value="threat>0 AND certainty>0">All</choice>
      <choice value="threat>=50 certainty>=50">Critical</choice>
      <choice value="threat>=50 certainty<=50">High</choice>
      <choice value="threat<=50 certainty>=50">Medium</choice>
      <choice value="threat>0 AND threat<50 certainty>0 AND certainty<50">Low</choice>
      <initialValue>threat>0 AND certainty>0</initialValue>
    </input>

In the drilldown, I actually provided the named and not the value. So by changing
hosts?form.hostseverity=High

to:
hosts?form.hostseverity=threat%3E%3D50%20certainty%3C%3D50

I solved my problem.

Thanks for your help.

0 Karma

ryandg
Communicator

Can you include the code when you are trying to pass the token as well as the settings for the host severity input?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...