<?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 Re: help to use a multivalue field in a dropdown list in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615958#M214041</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;it doesnt works&lt;/P&gt;&lt;P&gt;if i just put&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="dropdown" token="type" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Environnement source&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;*&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="standalone"&amp;gt;stand&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;it works&lt;/P&gt;&lt;P&gt;but with this it doent&amp;nbsp; works&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;input type="dropdown" token="type" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Environnement source&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;*&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="stand"&amp;gt;standalone&amp;lt;/choice&amp;gt;
          &amp;lt;choice value="vd&amp;amp;quot; OR type=&amp;amp;quot;xe"&amp;gt;virt&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;prefix&amp;gt;type="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 11:31:38 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2022-10-05T11:31:38Z</dc:date>
    <item>
      <title>How to use a multivalue field in a dropdown list?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615954#M214039</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;as you can see "type" field as 3 values : stand, vd or xe&lt;/P&gt;
&lt;P&gt;if the "type" field is "vd" or "xe", I need to gather them in a field called "virt" but i dont succeed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you help me please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="dropdown" token="type" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Environnement source&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;*&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="stand"&amp;gt;stand&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="type=(vd OR xe)"&amp;gt;virt&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 13:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615954#M214039</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-10-05T13:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: help to use a multivalue field in a dropdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615956#M214040</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you looking for something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;input type="dropdown" token="type" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Environnement source&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;*&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="stand"&amp;gt;stand&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="vd&amp;amp;quot; OR type=&amp;amp;quot;xe"&amp;gt;virt&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;prefix&amp;gt;type="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615956#M214040</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-10-05T11:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: help to use a multivalue field in a dropdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615958#M214041</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;it doesnt works&lt;/P&gt;&lt;P&gt;if i just put&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="dropdown" token="type" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Environnement source&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;*&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="standalone"&amp;gt;stand&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;it works&lt;/P&gt;&lt;P&gt;but with this it doent&amp;nbsp; works&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;input type="dropdown" token="type" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Environnement source&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;*&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="stand"&amp;gt;standalone&amp;lt;/choice&amp;gt;
          &amp;lt;choice value="vd&amp;amp;quot; OR type=&amp;amp;quot;xe"&amp;gt;virt&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;prefix&amp;gt;type="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615958#M214041</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-10-05T11:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: help to use a multivalue field in a dropdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615960#M214042</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MY_SEARCH $type$ | OTHER SEARCH&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval type="stand,vd,xe",type=split(type,",") |stats count by type | search $type$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share your sample search code only?&lt;/P&gt;&lt;P&gt;KV&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615960#M214042</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-10-05T11:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: help to use a multivalue field in a dropdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615962#M214043</link>
      <description>&lt;P&gt;here is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
    &amp;lt;input type="dropdown" token="type" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Environnement source&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;*&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="stand"&amp;gt;stand&amp;lt;/choice&amp;gt;
         &amp;lt;choice value="vd&amp;amp;quot; OR type=&amp;amp;quot;xe"&amp;gt;virt&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;prefix&amp;gt;type="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;ww&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=test type="$type$"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615962#M214043</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-10-05T11:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: help to use a multivalue field in a dropdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615965#M214045</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change your search with this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=test $type$ &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615965#M214045</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-10-05T11:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: help to use a multivalue field in a dropdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615969#M214047</link>
      <description>&lt;P&gt;perfect thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 12:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-multivalue-field-in-a-dropdown-list/m-p/615969#M214047</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-10-05T12:07:44Z</dc:date>
    </item>
  </channel>
</rss>

