<?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 Filtered search from 2 searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267213#M189898</link>
    <description>&lt;P&gt;I have 2 searches:&lt;BR /&gt;
 1. Search(AAA)|rename _time as TimeA|table TimeA host;&lt;BR /&gt;&lt;BR /&gt;
 2. Search(BBB)|rename _time as TimeB|table TimeB host  &lt;/P&gt;

&lt;P&gt;How to create a new search:&lt;BR /&gt;
Search(???)|table host;  (or Search(???)|table TimeA TimeB host)&lt;/P&gt;

&lt;P&gt;Which will only list the hosts that TimeB is older(or smaller) than TimeA &lt;BR /&gt;
(there might be more than 1 results TimeA and TimeB for each host, in that case, just pick the latest one to compare)&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2015 14:35:11 GMT</pubDate>
    <dc:creator>AllenZhang</dc:creator>
    <dc:date>2015-10-08T14:35:11Z</dc:date>
    <item>
      <title>Filtered search from 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267213#M189898</link>
      <description>&lt;P&gt;I have 2 searches:&lt;BR /&gt;
 1. Search(AAA)|rename _time as TimeA|table TimeA host;&lt;BR /&gt;&lt;BR /&gt;
 2. Search(BBB)|rename _time as TimeB|table TimeB host  &lt;/P&gt;

&lt;P&gt;How to create a new search:&lt;BR /&gt;
Search(???)|table host;  (or Search(???)|table TimeA TimeB host)&lt;/P&gt;

&lt;P&gt;Which will only list the hosts that TimeB is older(or smaller) than TimeA &lt;BR /&gt;
(there might be more than 1 results TimeA and TimeB for each host, in that case, just pick the latest one to compare)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 14:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267213#M189898</guid>
      <dc:creator>AllenZhang</dc:creator>
      <dc:date>2015-10-08T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered search from 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267214#M189899</link>
      <description>&lt;P&gt;This might get you started.  There may be other ways to do this, too.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search(AAA) | dedup host | rename _time as TimeA | join host [search (BBB) | dedup host | rename _time as TimeB] | where TimeB &amp;lt; TimeA | table TimeA TimeB host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:08:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267214#M189899</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-08T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered search from 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267215#M189900</link>
      <description>&lt;P&gt;Thanks to Richgalloway, it works! &lt;BR /&gt;
However, some expected records were not there in the result, if I the time window is not long enough.&lt;BR /&gt;
Any way to list those hosts, which were in results of search(AAA) but not in results of Search(BBB) ? &lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 17:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267215#M189900</guid>
      <dc:creator>AllenZhang</dc:creator>
      <dc:date>2015-10-08T17:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered search from 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267216#M189901</link>
      <description>&lt;P&gt;This this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search(AAA) | dedup host | rename _time as TimeA | join type=outer host [search (BBB) | dedup host | rename _time as TimeB | fillnull value=0 TimeB] | where TimeB &amp;lt; TimeA | table TimeA TimeB host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Oct 2015 18:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267216#M189901</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-08T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered search from 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267217#M189902</link>
      <description>&lt;P&gt;Great, it works like a charm! I am new to Splunk, and I have learnt a lot here. Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 18:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtered-search-from-2-searches/m-p/267217#M189902</guid>
      <dc:creator>AllenZhang</dc:creator>
      <dc:date>2015-10-08T18:49:33Z</dc:date>
    </item>
  </channel>
</rss>

