<?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: Why is my &amp;quot;OR&amp;quot; statement not working? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138679#M38065</link>
    <description>&lt;P&gt;Just as a note, when using append and you have more than 100,000 events returned, anything after the 100,000 will be a blank result.  However, you can still pipe the search to say table and/or stats and be able to utilize the data, just can't view the events past that, I am sure there is a setting to increase that before someone replies to this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .&lt;/P&gt;</description>
    <pubDate>Wed, 24 Sep 2014 18:53:24 GMT</pubDate>
    <dc:creator>icyfeverr</dc:creator>
    <dc:date>2014-09-24T18:53:24Z</dc:date>
    <item>
      <title>Why is my "OR" statement not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138675#M38061</link>
      <description>&lt;P&gt;When running my first and second searches independently the searches run fine and return a result within seconds.&lt;/P&gt;

&lt;P&gt;First:&lt;BR /&gt;
(earliest="09/24/2014:03:30:58" latest="09/24/2014:03:31:02" sourcetype="8354010")&lt;/P&gt;

&lt;P&gt;Second:&lt;BR /&gt;
(earliest="09/17/2014:11:48:41" latest="09/17/2014:11:48:45" sourcetype="8354010")&lt;/P&gt;

&lt;P&gt;When I try to run them together though, I start running into issues:&lt;/P&gt;

&lt;P&gt;Combined Search:&lt;BR /&gt;
( earliest="09/24/2014:03:30:58" latest="09/24/2014:03:31:02" sourcetype="8354010" ) OR ( earliest="09/17/2014:11:48:41" latest="09/17/2014:11:48:45" sourcetype="8354010" )&lt;/P&gt;

&lt;P&gt;When reviewing the Job Inspector on the Combined Search, it shows that the earliestTime is set to "2008-12-15T23:01:04.000-06:00".  Why is this occuring when using the "OR" statement?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 15:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138675#M38061</guid>
      <dc:creator>icyfeverr</dc:creator>
      <dc:date>2014-09-24T15:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my "OR" statement not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138676#M38062</link>
      <description>&lt;P&gt;I don't think you can have two different time ranges in the same search. You should be able to run two searches and append them to get the same effect, though:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;(earliest="09/24/2014:03:30:58" latest="09/24/2014:03:31:02" sourcetype="8354010") | append [search (earliest="09/17/2014:11:48:41" latest="09/17/2014:11:48:45" sourcetype="8354010")]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 17:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138676#M38062</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-24T17:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my "OR" statement not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138677#M38063</link>
      <description>&lt;P&gt;Hi aweitzman,&lt;/P&gt;

&lt;P&gt;it is possible to use two different time ranges in one search, see this &lt;A href="http://answers.splunk.com/answers/153336/is-it-possible-to-use-earliest-twice-in-one-search.html"&gt;http://answers.splunk.com/answers/153336/is-it-possible-to-use-earliest-twice-in-one-search.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 17:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138677#M38063</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-24T17:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my "OR" statement not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138678#M38064</link>
      <description>&lt;P&gt;Ha! You learn something new every day. That's what you get when you don't try things out yourself.&lt;/P&gt;

&lt;P&gt;So I tried it out for myself, and discovered something interesting. Searching each time range separately has the earliest and latest times set correctly, but searching them with an OR in between made it so that it windowed the search by the range of the time picker in the search bar. So if that were set to, say, "All Time," it would search over the entire contents of your sourcetypes just to pull out data between those two date ranges. By the same token, if it were set to "Today", it would cut off entries outside of today and give you an incomplete answer. (And if it were set to something that didn't overlap with either of the date ranges in the search, it would give you an error.)&lt;/P&gt;

&lt;P&gt;Hard to believe, but it looks like my "append" answer might actually be more efficient and/or correct in some cases.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138678#M38064</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-24T18:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my "OR" statement not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138679#M38065</link>
      <description>&lt;P&gt;Just as a note, when using append and you have more than 100,000 events returned, anything after the 100,000 will be a blank result.  However, you can still pipe the search to say table and/or stats and be able to utilize the data, just can't view the events past that, I am sure there is a setting to increase that before someone replies to this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-quot-OR-quot-statement-not-working/m-p/138679#M38065</guid>
      <dc:creator>icyfeverr</dc:creator>
      <dc:date>2014-09-24T18:53:24Z</dc:date>
    </item>
  </channel>
</rss>

