<?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: How do I get an any selection to work on a multiselect where filter? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320879#M161477</link>
    <description>&lt;P&gt;try adding one in the Static Options. Name is &lt;STRONG&gt;Any&lt;/STRONG&gt; value is *&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 11:49:50 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-04-07T11:49:50Z</dc:date>
    <item>
      <title>How do I get an any selection to work on a multiselect where filter?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320878#M161476</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I am currently working towards generating a user dashboard that requires nothing but text entry and multiselect input values. The user would like to filter by country, but wants an option for any, where it will return results from any country. The current setup is as follows:&lt;/P&gt;

&lt;P&gt;searchfunction&lt;BR /&gt;
$country$&lt;/P&gt;

&lt;P&gt;where the $country$ is:&lt;BR /&gt;
token prefix:  | where (&lt;BR /&gt;
token suffix: )&lt;BR /&gt;
token value prefix:country="&lt;BR /&gt;
token value suffix:"&lt;BR /&gt;
delimiter: OR &lt;/P&gt;

&lt;P&gt;for selection "United States" it formats:&lt;BR /&gt;
searchfunction&lt;BR /&gt;
|where (country="United States")&lt;/P&gt;

&lt;P&gt;for selection of "United States" with "Unknown" it formats:&lt;BR /&gt;
searchfunction&lt;BR /&gt;
|where (country="United States" OR country="Unknown"&lt;/P&gt;

&lt;P&gt;These return results exactly as expected and desired, but I can't see a way to have an "any" selection without just manually ticking every possible selection. Any ideas would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;BR /&gt;
Denym&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320878#M161476</guid>
      <dc:creator>denymw</dc:creator>
      <dc:date>2017-04-07T06:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get an any selection to work on a multiselect where filter?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320879#M161477</link>
      <description>&lt;P&gt;try adding one in the Static Options. Name is &lt;STRONG&gt;Any&lt;/STRONG&gt; value is *&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 11:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320879#M161477</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-07T11:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get an any selection to work on a multiselect where filter?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320880#M161478</link>
      <description>&lt;P&gt;unfortunately &amp;amp;ast; isn't accepted as a valid wildcard with |where. with the static value put as &amp;amp;ast; it still applies the token and token values, so the statement becomes |where (country="&amp;amp;ast;"), which reads as invalid and breaks the outputs.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 12:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320880#M161478</guid>
      <dc:creator>denymw</dc:creator>
      <dc:date>2017-04-07T12:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get an any selection to work on a multiselect where filter?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320881#M161479</link>
      <description>&lt;P&gt;why are you using "where"? Can you switch it to "search" and get the results you need?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 12:32:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320881#M161479</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-07T12:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get an any selection to work on a multiselect where filter?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320882#M161480</link>
      <description>&lt;P&gt;Changing to a search filter and using the &amp;amp;ast; for the static "all" entry worked perfectly for both single county, multi-country and "all" selection, thank you cmerriman. &lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 12:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320882#M161480</guid>
      <dc:creator>denymw</dc:creator>
      <dc:date>2017-04-07T12:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get an any selection to work on a multiselect where filter?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320883#M161481</link>
      <description>&lt;P&gt;just as a note, I generally use "where" to compare two fields and search to filter one field.&lt;/P&gt;

&lt;P&gt;for instance:&lt;BR /&gt;
&lt;CODE&gt;|where count=totalCount&lt;/CODE&gt; to filter down rows where an event has a count equal to the entire count&lt;BR /&gt;
&lt;CODE&gt;|search count&amp;gt;200&lt;/CODE&gt; to filter down rows where the count is greater than 200&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 12:55:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-an-any-selection-to-work-on-a-multiselect-where/m-p/320883#M161481</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-07T12:55:21Z</dc:date>
    </item>
  </channel>
</rss>

