Dashboards & Visualizations

dropdown option with asterix

jiaqya
Builder

i have a drop down enabled on a panel, however since its a dropdown i can choose only one of the entries at a time.
the multi-select does not look that good such that when i do multi-select , the panel size changes when i select a lot of options from the multi select dropdown.

so in question now , is that, can i do a * choice along with some common names on the drop down.

for ex: i have 6 drop down options abang, bbang, cbang, atest,btest,ctest

now when i type in "bang" , i get to see abang,bbang,cbang in the drop down option to choose from.
here i can choose only one of these, but is there a option i can type in *bang and see data for that in a panel ?

Tags (1)
0 Karma

jiaqya
Builder

alt text

0 Karma

vinaykata
Path Finder

It worked for me with asterisk on both the sides, I have no idea why my screen hasn't shown up here. Anyway if you still need help try to post xml code here, Some one might take a look at it.

0 Karma

jiaqya
Builder

Vinay, what you mentioned above are static entires, that works.

but my list in the input is coming from dynamic entires.. so how to make it choose dynamically with asterix..

below is my xml input code..

  <input type="dropdown" token="Site" searchWhenChanged="true" >
    <label>Select Site</label>
    <fieldForLabel>Site</fieldForLabel>
    <fieldForValue>Site</fieldForValue>
    <search>
      <query>index=testindex=-3d@d latest=now |dedup Site|table Site |sort by Site</query>
      <earliest>-7d@h</earliest>
      <latest>now</latest>
    </search>
    <choice value="*">All</choice>
    <default>*</default>
    <initialValue>*</initialValue>
  </input>
0 Karma

vinaykata
Path Finder

dropdown test

<input type="dropdown" token="host">
  <label>host</label>
  <choice value="*CVM*">*CVM*</choice>
  <choice value="*VMUI*">*VMUI*</choice>
  <fieldForLabel>host</fieldForLabel>
  <fieldForValue>host</fieldForValue>
</input>


<panel>
  <table>
    <search>
      <query>index=* source="*![alt text][1]" host=$host$| fields host| dedup host | table host</query>
      <earliest>-15m</earliest>
      <latest>now</latest>
      <sampleRatio>1</sampleRatio>
    </search>
    <option name="count">100</option>
    <option name="dataOverlayMode">none</option>
    <option name="drilldown">none</option>
    <option name="percentagesRow">false</option>
    <option name="rowNumbers">true</option>
    <option name="totalsRow">false</option>
    <option name="wrap">true</option>
  </table>
</panel>
0 Karma

jiaqya
Builder

Thanks for reply. This does not help my case, can you check the screenshot i attached, the dropdown list is dynamic and i would like to enforce a asterix so that 3 entries are considered.

Basically i need to consider all that contains BANG in the dropdown input..
but i can only choose 1 in that list...

0 Karma

jiaqya
Builder

alt text

0 Karma

jiaqya
Builder

Screenshot of the issue, i am unable to make the asterix choice.. how do i make the drop down accept bang* as an option

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...