<?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 Splunk not throwing an error when the time range I selected for my search is between a past and a future date? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212584#M62275</link>
    <description>&lt;P&gt;Why should you get an error when you search in a timerange that has no data? You'll simply get zero results. It's not "illegal" or somehow "undefined" what happens in that case.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2015 07:27:01 GMT</pubDate>
    <dc:creator>jeffland</dc:creator>
    <dc:date>2015-11-05T07:27:01Z</dc:date>
    <item>
      <title>Why is Splunk not throwing an error when the time range I selected for my search is between a past and a future date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212580#M62271</link>
      <description>&lt;P&gt;I have a basic search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=pqr host=xyz* NOT TYPE="*ABCDE*" | fields X, Y |timechart limit=0 span=10m count, avg(X) by Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I search it using the date range. Today, I tried choosing a date in the past and another one into the future . I expected to be thrown an error, but the search ran without errors. Why? Today is the 3rd. The date I chose was the 4th.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/783iBB1C718D39A72334/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 00:01:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212580#M62271</guid>
      <dc:creator>m_vivek</dc:creator>
      <dc:date>2015-11-04T00:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk not throwing an error when the time range I selected for my search is between a past and a future date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212581#M62272</link>
      <description>&lt;P&gt;Why would you expect an error? The time range you search on (and more importantly, it's relation to the current time) is arbitrary. Splunk will search on data from time X to time Y, regardless of the current time.&lt;/P&gt;

&lt;P&gt;You will get an error however when you try to index data that is either too old or too far in the future. Generally, it is perfectly legal to index data with a future timestamp (in standard configuration, this means two days ahead). These settings are configured in &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf"&gt;props.conf&lt;/A&gt; with &lt;CODE&gt;MAX_DAYS_AGO&lt;/CODE&gt; and &lt;CODE&gt;MAX_DAYS_HENCE&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 10:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212581#M62272</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-11-04T10:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk not throwing an error when the time range I selected for my search is between a past and a future date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212582#M62273</link>
      <description>&lt;P&gt;Because data is sometimes mis-timestamped, it is necessary to search for "impossible" things such as events that "have not yet happened".  The capability to search into the future is a huge benefit when trying to track down things like wrong TZ being applied to timestamps.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 13:43:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212582#M62273</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-04T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk not throwing an error when the time range I selected for my search is between a past and a future date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212583#M62274</link>
      <description>&lt;P&gt;Ok. Thanks. I think I now have a better understanding. I was expecting an error because, there was no data present for the future date, and I thought I would get something like 'out of range chosen or invalid dates chosen.' &lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 22:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212583#M62274</guid>
      <dc:creator>m_vivek</dc:creator>
      <dc:date>2015-11-04T22:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk not throwing an error when the time range I selected for my search is between a past and a future date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212584#M62275</link>
      <description>&lt;P&gt;Why should you get an error when you search in a timerange that has no data? You'll simply get zero results. It's not "illegal" or somehow "undefined" what happens in that case.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 07:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-not-throwing-an-error-when-the-time-range-I/m-p/212584#M62275</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-11-05T07:27:01Z</dc:date>
    </item>
  </channel>
</rss>

