<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic pre populate multiselect from csv lookup and allow to select remaining from index query in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/pre-populate-multiselect-from-csv-lookup-and-allow-to-select/m-p/465415#M30553</link>
    <description>&lt;P&gt;I have one csv lokup which looks like-&lt;BR /&gt;
Group numbers&lt;BR /&gt;
A             1&lt;BR /&gt;
A             2&lt;BR /&gt;
A             3&lt;BR /&gt;
A             4&lt;BR /&gt;
B             5&lt;BR /&gt;
B             6&lt;BR /&gt;
B             7&lt;BR /&gt;
B             8&lt;BR /&gt;
From above I am populating dropdown to show distinct Group ..In this case dropdown will show "A" and "B".And next to that I am using multiselect input -which will run from index query to populate numbers multiselect. and as per selection of group it should pre-populate numbers from csv lookup  .&lt;BR /&gt;
For example If I select Group from dropdown as "A" then multiselect should populate numbers "1","2","3","4" and allow user to select any other numbers from spl query- &lt;CODE&gt;index="abc" |stats count by numbers&lt;/CODE&gt;&lt;BR /&gt;
will it be possible in splunk.Please help.&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 18:08:24 GMT</pubDate>
    <dc:creator>ips_mandar</dc:creator>
    <dc:date>2019-12-12T18:08:24Z</dc:date>
    <item>
      <title>pre populate multiselect from csv lookup and allow to select remaining from index query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pre-populate-multiselect-from-csv-lookup-and-allow-to-select/m-p/465415#M30553</link>
      <description>&lt;P&gt;I have one csv lokup which looks like-&lt;BR /&gt;
Group numbers&lt;BR /&gt;
A             1&lt;BR /&gt;
A             2&lt;BR /&gt;
A             3&lt;BR /&gt;
A             4&lt;BR /&gt;
B             5&lt;BR /&gt;
B             6&lt;BR /&gt;
B             7&lt;BR /&gt;
B             8&lt;BR /&gt;
From above I am populating dropdown to show distinct Group ..In this case dropdown will show "A" and "B".And next to that I am using multiselect input -which will run from index query to populate numbers multiselect. and as per selection of group it should pre-populate numbers from csv lookup  .&lt;BR /&gt;
For example If I select Group from dropdown as "A" then multiselect should populate numbers "1","2","3","4" and allow user to select any other numbers from spl query- &lt;CODE&gt;index="abc" |stats count by numbers&lt;/CODE&gt;&lt;BR /&gt;
will it be possible in splunk.Please help.&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 18:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pre-populate-multiselect-from-csv-lookup-and-allow-to-select/m-p/465415#M30553</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-12-12T18:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: pre populate multiselect from csv lookup and allow to select remaining from index query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pre-populate-multiselect-from-csv-lookup-and-allow-to-select/m-p/465416#M30554</link>
      <description>&lt;P&gt;HI @ips_mandar,&lt;BR /&gt;
you have to create two dropdown inputs using the first token in the second input's search, in other words, something like this (if numbers is a field both in lookup and index and Group is only a field in lookup):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;your description&amp;lt;/description&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="group"&amp;gt;
      &amp;lt;label&amp;gt;Group&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Group&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Group&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| inputlookup my_lookup.csv | dedup Group | sort Group | table Group&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;prefix&amp;gt;Group="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="numbers"&amp;gt;
      &amp;lt;label&amp;gt;numbers&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;numbers&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;numbers&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=yout_index | lookup my_lookup.csv numbers OUTPUT Group | search $group$ | dedup numbers | sort numbers | table numbers&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;prefix&amp;gt;numbers="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="Time"&amp;gt;
      &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-1d@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;@d&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;your title&amp;lt;/title&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=your_index $numbers$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$Time.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$Time.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.sortDirection"&amp;gt;asc&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
      &amp;lt;/event&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 18:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pre-populate-multiselect-from-csv-lookup-and-allow-to-select/m-p/465416#M30554</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-12-12T18:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: pre populate multiselect from csv lookup and allow to select remaining from index query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pre-populate-multiselect-from-csv-lookup-and-allow-to-select/m-p/465417#M30555</link>
      <description>&lt;P&gt;Use 2 inputs: a &lt;CODE&gt;dropdown&lt;/CODE&gt; for &lt;CODE&gt;Group&lt;/CODE&gt; and a &lt;CODE&gt;multiselect&lt;/CODE&gt; that uses the token from that to populate &lt;CODE&gt;Number(s)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 00:10:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pre-populate-multiselect-from-csv-lookup-and-allow-to-select/m-p/465417#M30555</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-13T00:10:30Z</dc:date>
    </item>
  </channel>
</rss>

