<?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 Searches are not using earliest and latest time modifiers in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Searches-are-not-using-earliest-and-latest-time-modifiers/m-p/741041#M21801</link>
    <description>&lt;P&gt;Hello, and I have another weird issue:&lt;BR /&gt;When I execute a search on a SHC in the Search and Reporting App, getting data from 2025-02-27&lt;BR /&gt;index=test earliest=-7d@d latest=-6d@d&lt;BR /&gt;I get zero events&lt;BR /&gt;When I execute the search WITHOUT the earliest and latest time modifiers and use the Time Picker in the UI which results in "during Thu, Feb 27, 2025"&lt;BR /&gt;I get around 167,153 results&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Specifying the time range with earliest and latest time modifiers is NOT giving me the "Your timerange was substituted based on your search string".&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I use tstats, I get the correct number of events, the correct date, and the message&amp;nbsp;"Your timerange was substituted based on your search string" is present&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| tstats count where index=test earliest=-7d@d latest=-6d@d by _time span=d&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also made index=test earliest=-7d@d latest=-6d@d a saved search which executes every 10 minutes - zero events.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another bit of weirdness:&lt;BR /&gt;If I run that search, and specify "All time", it will pull events ONLY for 2025-02-27. Nothing for other dates, and it has 12 months of events, populated for every day. So, it looks at both the time qualifiers and the time picker under that scenario.&lt;BR /&gt;&lt;BR /&gt;Any ideas what might be causing this? (I have several standalone searchheads that are working fine)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 18:39:32 GMT</pubDate>
    <dc:creator>TheJagoff</dc:creator>
    <dc:date>2025-03-06T18:39:32Z</dc:date>
    <item>
      <title>Searches are not using earliest and latest time modifiers</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Searches-are-not-using-earliest-and-latest-time-modifiers/m-p/741041#M21801</link>
      <description>&lt;P&gt;Hello, and I have another weird issue:&lt;BR /&gt;When I execute a search on a SHC in the Search and Reporting App, getting data from 2025-02-27&lt;BR /&gt;index=test earliest=-7d@d latest=-6d@d&lt;BR /&gt;I get zero events&lt;BR /&gt;When I execute the search WITHOUT the earliest and latest time modifiers and use the Time Picker in the UI which results in "during Thu, Feb 27, 2025"&lt;BR /&gt;I get around 167,153 results&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Specifying the time range with earliest and latest time modifiers is NOT giving me the "Your timerange was substituted based on your search string".&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I use tstats, I get the correct number of events, the correct date, and the message&amp;nbsp;"Your timerange was substituted based on your search string" is present&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| tstats count where index=test earliest=-7d@d latest=-6d@d by _time span=d&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also made index=test earliest=-7d@d latest=-6d@d a saved search which executes every 10 minutes - zero events.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another bit of weirdness:&lt;BR /&gt;If I run that search, and specify "All time", it will pull events ONLY for 2025-02-27. Nothing for other dates, and it has 12 months of events, populated for every day. So, it looks at both the time qualifiers and the time picker under that scenario.&lt;BR /&gt;&lt;BR /&gt;Any ideas what might be causing this? (I have several standalone searchheads that are working fine)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 18:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Searches-are-not-using-earliest-and-latest-time-modifiers/m-p/741041#M21801</guid>
      <dc:creator>TheJagoff</dc:creator>
      <dc:date>2025-03-06T18:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Searches are not using earliest and latest time modifiers</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Searches-are-not-using-earliest-and-latest-time-modifiers/m-p/741045#M21802</link>
      <description>&lt;P&gt;Found the issue:&lt;BR /&gt;We built a standalone SH and copied the $SPLUNK_HOME/etc/apps directory from the SHC to it.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Started removing apps on the test server, one at a time, and when we removed one of the Apps and restarted., the searches started to work again.&lt;BR /&gt;One of our crew found the following in the app the was just removed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[source::stream:Gigamon]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EVAL-_time = strptime('timestamp', "%Y-%m-%dT%H:%M:%S,%N")&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;This seems to be the issue. We went back to the SHC and specified a source without removing anything and it pulled data. Not really clear on why that would make a difference, but it does.&lt;BR /&gt;&lt;BR /&gt;The main takeaway from this is that a configuration change that had an effect on _time caused this issue.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 19:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Searches-are-not-using-earliest-and-latest-time-modifiers/m-p/741045#M21802</guid>
      <dc:creator>TheJagoff</dc:creator>
      <dc:date>2025-03-06T19:53:24Z</dc:date>
    </item>
  </channel>
</rss>

