<?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 do you use the IN function with a free text search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416379#M119843</link>
    <description>&lt;P&gt;I would like to search the entire record for a list of text strings using the IN function.&lt;/P&gt;

&lt;P&gt;At the moment, I have a search that looks a bit like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (a OR b OR c) AND message_type=foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which finds &lt;CODE&gt;za&lt;/CODE&gt;, &lt;CODE&gt;zb&lt;/CODE&gt;, &lt;CODE&gt;zc&lt;/CODE&gt; etc. in the field &lt;CODE&gt;video_type&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I would rather use something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; video_type IN (a, b, c) AND message_type=foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; _raw IN (a, b, c) AND message_type=foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Because I want to use the search in a dashboard and have users paste &lt;CODE&gt;a&lt;/CODE&gt;, &lt;CODE&gt;b&lt;/CODE&gt;, and &lt;CODE&gt;c&lt;/CODE&gt; in an input.&lt;/P&gt;

&lt;P&gt;But free text search doesn't work if you specify a field to search in — it only seems to find exact matches.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2019 17:37:45 GMT</pubDate>
    <dc:creator>toryan</dc:creator>
    <dc:date>2019-02-27T17:37:45Z</dc:date>
    <item>
      <title>How do you use the IN function with a free text search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416379#M119843</link>
      <description>&lt;P&gt;I would like to search the entire record for a list of text strings using the IN function.&lt;/P&gt;

&lt;P&gt;At the moment, I have a search that looks a bit like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (a OR b OR c) AND message_type=foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which finds &lt;CODE&gt;za&lt;/CODE&gt;, &lt;CODE&gt;zb&lt;/CODE&gt;, &lt;CODE&gt;zc&lt;/CODE&gt; etc. in the field &lt;CODE&gt;video_type&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I would rather use something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; video_type IN (a, b, c) AND message_type=foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; _raw IN (a, b, c) AND message_type=foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Because I want to use the search in a dashboard and have users paste &lt;CODE&gt;a&lt;/CODE&gt;, &lt;CODE&gt;b&lt;/CODE&gt;, and &lt;CODE&gt;c&lt;/CODE&gt; in an input.&lt;/P&gt;

&lt;P&gt;But free text search doesn't work if you specify a field to search in — it only seems to find exact matches.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 17:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416379#M119843</guid>
      <dc:creator>toryan</dc:creator>
      <dc:date>2019-02-27T17:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the IN function with a free text search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416380#M119844</link>
      <description>&lt;P&gt;@toryan IN will look for exact value and not a substring. Probably you can use match function instead.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 17:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416380#M119844</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-27T17:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the IN function with a free text search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416381#M119845</link>
      <description>&lt;P&gt;As the search is used in dashboard, the user inputs can be collected in a token and run against search. Do you see any issues with that? you don't need to use IN&lt;BR /&gt;
    your base search message_type=foo| search (video_type=$tokenA$ OR video_type=$tokenB$)    &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416381#M119845</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2020-09-29T23:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the IN function with a free text search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416382#M119846</link>
      <description>&lt;P&gt;I want users to be able to input any number of values, separated by commas, in an input. So using $a OR $b etc will not work.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 11:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416382#M119846</guid>
      <dc:creator>toryan</dc:creator>
      <dc:date>2019-03-01T11:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the IN function with a free text search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416383#M119847</link>
      <description>&lt;P&gt;@Vijeta how would that work? Can you provide an example?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 13:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416383#M119847</guid>
      <dc:creator>toryan</dc:creator>
      <dc:date>2019-03-01T13:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the IN function with a free text search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416384#M119848</link>
      <description>&lt;P&gt;Isn't this just a case where you could use wildcards like a*, b*, c*?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416384#M119848</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-09-29T23:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the IN function with a free text search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416385#M119849</link>
      <description>&lt;P&gt;Try &lt;BR /&gt;
    match(video_type, “a|b|c|d”)&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 03:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416385#M119849</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-03-03T03:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the IN function with a free text search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416386#M119850</link>
      <description>&lt;P&gt;This still doesn't allow users to enter the search terms in an input field.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 07:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-IN-function-with-a-free-text-search/m-p/416386#M119850</guid>
      <dc:creator>toryan</dc:creator>
      <dc:date>2019-03-05T07:17:50Z</dc:date>
    </item>
  </channel>
</rss>

