<?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 How to use N values in a search dependent on a user selecting N values from drop-down forms? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-N-values-in-a-search-dependent-on-a-user-selecting-N/m-p/227442#M67168</link>
    <description>&lt;P&gt;I have 9 drop-downs, and depending on user selection, the search is going to use those values to create a table. Since the drop-down values are dynamically generated (each is linked to another), there is no way to know how many of the values will be used in the final search. I want to know how is it possible to use N values in a search dependent on a user selecting N values.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=main sourcetype=traffic_information 
| search * traffic_location $imd1$ $imd2$ $imd3$ $imd4$ $imd5$ $imd6$ $imd7$ $imd8$ imd9$ 
| table city, state, location
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is it possible to have a default value (or just don't use) in the above search when the value is not selected?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2016 21:24:57 GMT</pubDate>
    <dc:creator>smhsplunk</dc:creator>
    <dc:date>2016-04-28T21:24:57Z</dc:date>
    <item>
      <title>How to use N values in a search dependent on a user selecting N values from drop-down forms?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-N-values-in-a-search-dependent-on-a-user-selecting-N/m-p/227442#M67168</link>
      <description>&lt;P&gt;I have 9 drop-downs, and depending on user selection, the search is going to use those values to create a table. Since the drop-down values are dynamically generated (each is linked to another), there is no way to know how many of the values will be used in the final search. I want to know how is it possible to use N values in a search dependent on a user selecting N values.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=main sourcetype=traffic_information 
| search * traffic_location $imd1$ $imd2$ $imd3$ $imd4$ $imd5$ $imd6$ $imd7$ $imd8$ imd9$ 
| table city, state, location
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is it possible to have a default value (or just don't use) in the above search when the value is not selected?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 21:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-N-values-in-a-search-dependent-on-a-user-selecting-N/m-p/227442#M67168</guid>
      <dc:creator>smhsplunk</dc:creator>
      <dc:date>2016-04-28T21:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use N values in a search dependent on a user selecting N values from drop-down forms?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-N-values-in-a-search-dependent-on-a-user-selecting-N/m-p/227443#M67169</link>
      <description>&lt;P&gt;You can set the default to &lt;CODE&gt;*&lt;/CODE&gt; in the drop-down. In addition to the query to populate dropdown with dynamic values, you can add static values. A common use for static values is to add &lt;CODE&gt;"*"&lt;/CODE&gt; and set that to be the default. &lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 22:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-N-values-in-a-search-dependent-on-a-user-selecting-N/m-p/227443#M67169</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-04-28T22:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use N values in a search dependent on a user selecting N values from drop-down forms?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-N-values-in-a-search-dependent-on-a-user-selecting-N/m-p/227444#M67170</link>
      <description>&lt;P&gt;Thanks! This works fine.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 17:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-N-values-in-a-search-dependent-on-a-user-selecting-N/m-p/227444#M67170</guid>
      <dc:creator>smhsplunk</dc:creator>
      <dc:date>2016-05-02T17:05:39Z</dc:date>
    </item>
  </channel>
</rss>

