<?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: Using a result from one search  in another search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47518#M179474</link>
    <description>&lt;P&gt;Yeah if you just want to bound, rather than get exact second, this is better.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Sep 2010 05:33:56 GMT</pubDate>
    <dc:creator>jrodman</dc:creator>
    <dc:date>2010-09-10T05:33:56Z</dc:date>
    <item>
      <title>Using a result from one search  in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47512#M179468</link>
      <description>&lt;P&gt;I am trying to:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Find a date/time of a certain event.&lt;/LI&gt;
&lt;LI&gt;Take that date/time from number 1. and use it to search for events only from that date/time forward.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;If the date/time from number 1 was September 1st at 1:45.. Then for number 2, I would only want to get back events from September 1st and forward (forgetting about events before that.)&lt;/P&gt;

&lt;P&gt;I need this to be automatic in the searches because the date/time range from number 1 will change based upon different circumstances.&lt;/P&gt;

&lt;P&gt;I tried subsearches to no avail.&lt;/P&gt;

&lt;P&gt;I am using _time.&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 03:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47512#M179468</guid>
      <dc:creator>htkhtk</dc:creator>
      <dc:date>2010-09-10T03:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using a result from one search  in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47513#M179469</link>
      <description>&lt;P&gt;This is pattern is possible using a subsearch, with kind of hack of a special field called 'search', mentioned over here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/questions/3471/using-a-subsearch-to-get-the-time-of-an-event" rel="nofollow"&gt;http://answers.splunk.com/questions/3471/using-a-subsearch-to-get-the-time-of-an-event&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 04:15:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47513#M179469</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-09-10T04:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a result from one search  in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47514#M179470</link>
      <description>&lt;P&gt;I have gotten that far but when I try to do the where _time &amp;gt; [that sub search here].. It doesn't work or sometimes i get an error that says the values aren't compatible&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 04:29:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47514#M179470</guid>
      <dc:creator>htkhtk</dc:creator>
      <dc:date>2010-09-10T04:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using a result from one search  in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47515#M179471</link>
      <description>&lt;P&gt;In the example given, there would be no where clause.  It simply becomes a constraint on the base search, which is vastly more performant.  The base search command can and does perform numerical equality testing as well as numerical comparisons.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 04:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47515#M179471</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-09-10T04:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using a result from one search  in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47516#M179472</link>
      <description>&lt;P&gt;you can't use a subsearch with the &lt;CODE&gt;where&lt;/CODE&gt; command. Please see my other answer.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 05:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47516#M179472</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-10T05:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using a result from one search  in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47517#M179473</link>
      <description>&lt;P&gt;This should pretty much be it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=outer [ sourcetype=inner item=xxxx | head 1 | rename _time as earliest | fields earliest ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I use &lt;CODE&gt;head 1&lt;/CODE&gt; to ensure just a single result, but if you only get one result some other way, that's fine too.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 05:22:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47517#M179473</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-10T05:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using a result from one search  in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47518#M179474</link>
      <description>&lt;P&gt;Yeah if you just want to bound, rather than get exact second, this is better.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 05:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47518#M179474</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-09-10T05:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using a result from one search  in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47519#M179475</link>
      <description>&lt;P&gt;This is exactly what i wanted.. thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 20:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47519#M179475</guid>
      <dc:creator>htkhtk</dc:creator>
      <dc:date>2010-09-10T20:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using a result from one search  in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47520#M179476</link>
      <description>&lt;P&gt;Is there a way to do this same thing... but for multiple results?  like if i wanted to show a table full of IP stats/etc limited to the top 10 IP values of only 1 of those stats?  or in this example, the earliest 10?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2013 07:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-result-from-one-search-in-another-search/m-p/47520#M179476</guid>
      <dc:creator>dennywebb</dc:creator>
      <dc:date>2013-04-21T07:57:20Z</dc:date>
    </item>
  </channel>
</rss>

