Dashboards & Visualizations

smart input text/dropdown on a dashboard?

dbcase
Motivator

Hi,

Is it possible to have a "smart" text or dropdown input on a dashboard?

Example:

Here is a list of account ID's

1234
1112
1113
2001
2002
3999
3998
3400

If a user inputs the number 1 then the list would be narrowed down to
1234
1112
1113

then if the user inputs another 1 (input now = 11) then the list would be further narrowed down to
1112
1113

Is this sort of thing possible?

0 Karma

niketn
Legend

@dbcase, just add atleast one static choice and you should have a Text Box based filter as well. Following run anywhere example has All as a static choice i.e. <choice value="*">All</choice>

  <fieldset submitButton="false">
    <input type="dropdown" token="tokDropdown" searchWhenChanged="true">
      <label>Dynamic Dropdown</label>
      <fieldForLabel>data</fieldForLabel>
      <fieldForValue>data</fieldForValue>
      <search>
        <query>|  makeresults
|  eval data="1234;1112;1113;2001;2002;3999;3998;3400"
|  makemv data delim=";"
|  mvexpand data
|  table data</query>
        <earliest>-24h@h</earliest>
        <latest>now</latest>
      </search>
      <choice value="*">All</choice>
    </input>
  </fieldset>

Please try out and confirm!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

somesoni2
Revered Legend

I think the multiselect input does that.

0 Karma

dbcase
Motivator

ding ding! worked perfectly! Thanks somesoni2!!

0 Karma

niketn
Legend

@dbcase, I have converted @somesoni2 's comment to Answer. Please accept to mark this question as answered! 🙂

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...