<?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 to properly use AND / OR in search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-properly-use-AND-OR-in-search/m-p/133983#M36615</link>
    <description>&lt;P&gt;nevermind, figured it out&lt;/P&gt;

&lt;P&gt;(apple OR orange OR grape) AND SYSERR0001&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jun 2015 20:00:13 GMT</pubDate>
    <dc:creator>eddychuah</dc:creator>
    <dc:date>2015-06-02T20:00:13Z</dc:date>
    <item>
      <title>How to properly use AND / OR in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-properly-use-AND-OR-in-search/m-p/133982#M36614</link>
      <description>&lt;P&gt;I'm new to this community, any help will be greatly appreciated!!!&lt;/P&gt;

&lt;P&gt;How can i search groups of keywords but i would like the search result to include all of them&lt;/P&gt;

&lt;P&gt;Example, give me ALL results where you see SYSERR0001 apple or SYSERR0001 orange or SYSERR0001 grape&lt;/P&gt;

&lt;P&gt;i find that if i use the or statement above, splunk search ONLY returns me the right most OR that it finds, however I wish to locate all events that contains the keyword pairs of SYSERR0001 apple or SYSERR0001 orange or SYSERR0001 grape&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:54:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-properly-use-AND-OR-in-search/m-p/133982#M36614</guid>
      <dc:creator>eddychuah</dc:creator>
      <dc:date>2015-06-02T19:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly use AND / OR in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-properly-use-AND-OR-in-search/m-p/133983#M36615</link>
      <description>&lt;P&gt;nevermind, figured it out&lt;/P&gt;

&lt;P&gt;(apple OR orange OR grape) AND SYSERR0001&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 20:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-properly-use-AND-OR-in-search/m-p/133983#M36615</guid>
      <dc:creator>eddychuah</dc:creator>
      <dc:date>2015-06-02T20:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly use AND / OR in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-properly-use-AND-OR-in-search/m-p/133984#M36616</link>
      <description>&lt;P&gt;Yep.  and by the way "AND" is kinda funny in Splunk.   It's always redundant in search, so although Splunk doesn't give you an error, you can always remove it when you see it in the initial search clause, or in a subsequent search command downstream.  Another way of looking at this is that Splunk mentally puts an "AND" in between any two terms where there isn't an OR. Thus the explicit ones are unnecessary.  &lt;/P&gt;

&lt;P&gt;Bottom line - &lt;CODE&gt;(apple OR orange OR grape) SYSERR0001&lt;/CODE&gt;   will work just as well. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 20:54:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-properly-use-AND-OR-in-search/m-p/133984#M36616</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2015-06-02T20:54:45Z</dc:date>
    </item>
  </channel>
</rss>

