<?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: Subsearch Realtime - Parent Search Last 5 minutes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18536#M2700</link>
    <description>&lt;P&gt;I thought so too, but I tried that and get:&lt;/P&gt;

&lt;P&gt;Invalid value "rt-5m" for time term 'earliest'&lt;/P&gt;

&lt;P&gt;earliest="rt-5m"&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2012 21:10:28 GMT</pubDate>
    <dc:creator>BP9906</dc:creator>
    <dc:date>2012-10-31T21:10:28Z</dc:date>
    <item>
      <title>Subsearch Realtime - Parent Search Last 5 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18532#M2696</link>
      <description>&lt;P&gt;Is it possible to have a subsearch looking for a log entry in realtime, then take that field and look back the past 5 minutes for the web logs? &lt;/P&gt;

&lt;P&gt;I cant seem to get a subsearch to work properly because it does both the subsearch and parent search in realtime, which is why I get no results. &lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;index=weblog [ search index=log AND "keyword" | fields + field_name ]&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18532#M2696</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2012-10-31T16:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Realtime - Parent Search Last 5 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18533#M2697</link>
      <description>&lt;P&gt;You can use the earliest and latest keywords in a search (before the first pipe (|) character) to guide Splunk and constrain one part of the search, thereby ignoring the time range picker. Hints on the format of these "earliest" and "latest" modifiers can be found &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Search/Specifytimemodifiersinyoursearch"&gt;here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;In your case, you'd probably add the "earliest" and "latest" to your outer search, letting the time range picker drive the subsearch.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 17:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18533#M2697</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-10-31T17:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Realtime - Parent Search Last 5 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18534#M2698</link>
      <description>&lt;P&gt;Thanks, I tried adding: earliest=-5m@s &lt;/P&gt;

&lt;P&gt;index=weblog earliest=-5m@s [ search index=log AND "keyword" | fields + field_name ]&lt;/P&gt;

&lt;P&gt;I get 2 warnings now:&lt;/P&gt;

&lt;P&gt;-Search time modifiers are ignored in real-time searches&lt;/P&gt;

&lt;P&gt;-[subsearch]: Subsearches of a real-time search run over all-time unless explicit time bounds are specified within the subsearch.&lt;/P&gt;

&lt;P&gt;Am I doing something wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 18:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18534#M2698</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2012-10-31T18:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Realtime - Parent Search Last 5 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18535#M2699</link>
      <description>&lt;P&gt;The first warning indicates your earliest is ignored since the time range picker is using a real time window. The second warning is to tell you that the subsearch is running "over all time" because a smaller window wasn't applied.&lt;/P&gt;

&lt;P&gt;Let's try changing the order of things--let's apply a narrower window to the subsearch, and then let the time range picker set the "last 5 minutes" part.&lt;/P&gt;

&lt;P&gt;Add "earliest=rt-5m" to your &lt;EM&gt;subsearch&lt;/EM&gt;, specifying "last 5 minutes, real time", then your outer search's time frame can be dictated by the time range picker.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 20:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18535#M2699</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-10-31T20:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Realtime - Parent Search Last 5 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18536#M2700</link>
      <description>&lt;P&gt;I thought so too, but I tried that and get:&lt;/P&gt;

&lt;P&gt;Invalid value "rt-5m" for time term 'earliest'&lt;/P&gt;

&lt;P&gt;earliest="rt-5m"&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 21:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Realtime-Parent-Search-Last-5-minutes/m-p/18536#M2700</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2012-10-31T21:10:28Z</dc:date>
    </item>
  </channel>
</rss>

