<?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: Distributed search scheduled  alerts on SH in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160565#M45393</link>
    <description>&lt;P&gt;Also note i use scheduled search  and timerange is blank excepting for inline search timerange based on _index_time&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:37:25 GMT</pubDate>
    <dc:creator>Mag2sub</dc:creator>
    <dc:date>2020-09-28T16:37:25Z</dc:date>
    <item>
      <title>Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160556#M45384</link>
      <description>&lt;P&gt;We have an indexer indexing events with _time 5 hours head and we have Distributed search from SH which looks at _index time earliest and latest 10 minutes...although events with _time + 5 hours and matching index time exist ..they dont show up in Splunk SH scheduled searches ? why ?&lt;/P&gt;

&lt;P&gt;Does the scheduler (SH) introduce some filter when they run to prevent them from searching events that have timestamps later than the local runtimes of the queries&lt;BR /&gt;
Kindly clarify&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 08:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160556#M45384</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-05-12T08:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160557#M45385</link>
      <description>&lt;P&gt;What time range is the scheduled search using?&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 21:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160557#M45385</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-12T21:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160558#M45386</link>
      <description>&lt;P&gt;Distributed search from SH which looks at _index time earliest and latest 10 minutes..as in above ...thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 03:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160558#M45386</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-05-13T03:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160559#M45387</link>
      <description>&lt;P&gt;If your &lt;CODE&gt;earliest&lt;/CODE&gt; and &lt;CODE&gt;latest&lt;/CODE&gt; filter for ten minutes then you won't see events a day into the future.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 08:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160559#M45387</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-13T08:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160560#M45388</link>
      <description>&lt;P&gt;I guess im trying to say  the search query is based on _indextime and not _time...so that should not be the case although _time is +5 hrs ahead&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 06:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160560#M45388</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-05-14T06:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160561#M45389</link>
      <description>&lt;P&gt;Isn't every search based on &lt;CODE&gt;_time&lt;/CODE&gt;, regardless of other filters?&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 07:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160561#M45389</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-14T07:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160562#M45390</link>
      <description>&lt;P&gt;I believe you can do _index_earliest and latest based search instead of _time and thats what was used&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:37:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160562#M45390</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2020-09-28T16:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160563#M45391</link>
      <description>&lt;P&gt;Yeah, but &lt;CODE&gt;_index_earliest&lt;/CODE&gt; and &lt;CODE&gt;_index_latest&lt;/CODE&gt; are added to the time range as &lt;CODE&gt;AND&lt;/CODE&gt;-condition, they don't replace it. Here's an example:&lt;/P&gt;

&lt;P&gt;I've just started the Splunk on my Laptop, it's 9am... in the past hour it has indexed data from this morning, plus a bit of leftovers from yesterday. I'm running two searches based on this string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal _index_earliest=-h _index_latest=now
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run that with a time range (timestamp, not index time) of -24h@h to now I get events from yesterday that were indexed this morning, if I run that with a time range (timestamp, not index time) of -4h@m to now I don't get those.&lt;/P&gt;

&lt;P&gt;To get around this for events from the future, set the time range's latest setting to something in the future, for example &lt;CODE&gt;+2d&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2014 07:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160563#M45391</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-15T07:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160564#M45392</link>
      <description>&lt;P&gt;Hmm... inline search timerange is supposed to override Timerange specified outside ...i saw that documented somewhere ..also in our case the timerange outside our search is blank...ie we have no _time&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2014 08:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160564#M45392</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-05-15T08:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160565#M45393</link>
      <description>&lt;P&gt;Also note i use scheduled search  and timerange is blank excepting for inline search timerange based on _index_time&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160565#M45393</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2020-09-28T16:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160566#M45394</link>
      <description>&lt;P&gt;If you specify &lt;CODE&gt;_index_earliest&lt;/CODE&gt; inline then you're &lt;EM&gt;not&lt;/EM&gt; overriding any &lt;CODE&gt;earliest&lt;/CODE&gt; set elsewhere. Both filters can coexist and be applied.&lt;/P&gt;

&lt;P&gt;As for "no &lt;CODE&gt;_time&lt;/CODE&gt;", every event in Splunk should have &lt;CODE&gt;_time&lt;/CODE&gt;, even if it's just derived from the index time.&lt;/P&gt;

&lt;P&gt;If the timerange is blank then it should use "all time", which is &lt;CODE&gt;earliest=0 latest=now&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Have you tried what I suggested several times, setting latest as a time in the future, e.g. &lt;CODE&gt;+2d&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2014 21:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160566#M45394</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-15T21:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160567#M45395</link>
      <description>&lt;P&gt;Ok the idea is we dont know all device timezone and timestamps...how can we be sure of +2d ...it can be a year head ..irrespective we use indextime in  seach query&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 09:44:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160567#M45395</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-05-16T09:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160568#M45396</link>
      <description>&lt;P&gt;Is there anyway we can just search using _indextime and not use _time&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 09:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160568#M45396</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-05-16T09:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160569#M45397</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;+10y&lt;/CODE&gt; then, that's most likely beyond your &lt;CODE&gt;MAX_DAYS_HENCE&lt;/CODE&gt; setting anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 10:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160569#M45397</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-16T10:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160570#M45398</link>
      <description>&lt;P&gt;On a concept level if we have inline search time range of  past 5 minutes of indextime and  outside timerange of past 10 min..so will it AND and always give both last 5 indextime and last 10 _time..making our key purpose ineffective&lt;BR /&gt;
I did not get the precedence or how do 2 time ranges operate ?&lt;/P&gt;</description>
      <pubDate>Sat, 17 May 2014 03:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160570#M45398</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-05-17T03:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160571#M45399</link>
      <description>&lt;P&gt;All filters are linked by &lt;CODE&gt;AND&lt;/CODE&gt;, especially the time range. Just set &lt;CODE&gt;latest&lt;/CODE&gt; to &lt;CODE&gt;+10y&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 17 May 2014 10:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160571#M45399</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-17T10:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160572#M45400</link>
      <description>&lt;P&gt;..i have searched the search.log  Lispy query search parser of this search for these _indextime "AND" all _time   cannot seem to find it ...is the final query dispatched available to see in any logs..i keep seeing only indextime..&lt;/P&gt;</description>
      <pubDate>Sun, 18 May 2014 16:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160572#M45400</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-05-18T16:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Distributed search scheduled  alerts on SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160573#M45401</link>
      <description>&lt;P&gt;The time range never appears in the lispy debug messages.&lt;/P&gt;

&lt;P&gt;Try choosing &lt;CODE&gt;latest=+10y&lt;/CODE&gt; to effectively disable the latest time range boundary - come back once you've tried that and report on your results.&lt;/P&gt;</description>
      <pubDate>Sun, 18 May 2014 22:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Distributed-search-scheduled-alerts-on-SH/m-p/160573#M45401</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-18T22:16:22Z</dc:date>
    </item>
  </channel>
</rss>

