<?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: Search a field for multiple values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63198#M15609</link>
    <description>&lt;P&gt;Should value1 or value2 be enclosed in quotes?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2015 14:27:28 GMT</pubDate>
    <dc:creator>Georgin</dc:creator>
    <dc:date>2015-11-25T14:27:28Z</dc:date>
    <item>
      <title>Search a field for multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63196#M15607</link>
      <description>&lt;P&gt;I am attempting to search a field, for multiple values. &lt;/P&gt;

&lt;P&gt;this is the syntax I am using:&lt;/P&gt;

&lt;P&gt;&amp;lt; mysearch &amp;gt; field=value1,value2 | table _time,field&lt;/P&gt;

&lt;P&gt;The ',' doesn't work, but I assume there is an easy way to do this, I just can't find it the documentation. &lt;/P&gt;

&lt;P&gt;Does anyone have any ideas? &lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 19:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63196#M15607</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2012-12-13T19:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Search a field for multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63197#M15608</link>
      <description>&lt;P&gt;Use field=value1 OR field=value2.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 19:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63197#M15608</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2012-12-13T19:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search a field for multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63198#M15609</link>
      <description>&lt;P&gt;Should value1 or value2 be enclosed in quotes?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 14:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63198#M15609</guid>
      <dc:creator>Georgin</dc:creator>
      <dc:date>2015-11-25T14:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Search a field for multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63199#M15610</link>
      <description>&lt;P&gt;Yes . You may include it&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 07:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63199#M15610</guid>
      <dc:creator>splunkdevabhi</dc:creator>
      <dc:date>2016-07-25T07:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search a field for multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63200#M15611</link>
      <description>&lt;P&gt;@Georgin: It doesn't have to be quoted unless the value itself contains separators. E.g. field=0 OR field=1 is fine, but you would have to use quotes for field="My String With Spaces".&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63200#M15611</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2016-07-26T12:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search a field for multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63201#M15612</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
I am trying to combine it with my search string but no result is returned. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1  type=transaction (host="host1" OR host="host2" OR host="host3")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is wrong? &lt;/P&gt;

&lt;P&gt;Thanks, Regards, Rudo&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 13:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/63201#M15612</guid>
      <dc:creator>ReddySk</dc:creator>
      <dc:date>2019-08-07T13:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search a field for multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/504772#M140973</link>
      <description>&lt;P&gt;&lt;BR /&gt;field IN (value1,value2,value3)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;index=network severity IN (low,high,medium)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 11:22:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/504772#M140973</guid>
      <dc:creator>Eze</dc:creator>
      <dc:date>2020-06-17T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search a field for multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/522902#M147458</link>
      <description>&lt;P&gt;You can use the `IN` operator like:&lt;/P&gt;&lt;PRE&gt;error_code IN (4*, 500, 502, 503)&lt;/PRE&gt;&lt;P&gt;You can have both concrete values and wildcards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/smooth-operator-searching-for-multiple-field-values.html" target="_self"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/smooth-operator-searching-for-multiple-field-values.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 06:30:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-field-for-multiple-values/m-p/522902#M147458</guid>
      <dc:creator>pkisplunk</dc:creator>
      <dc:date>2020-10-05T06:30:42Z</dc:date>
    </item>
  </channel>
</rss>

