<?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 Splunk query to combine two searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-combine-two-searches/m-p/114425#M30260</link>
    <description>&lt;P&gt;I haven't written a complex splunk query for a while, please help me in getting started with this. This is what i am trying to do,&lt;/P&gt;

&lt;P&gt;I have a master list of hosts which i have loaded into Splunk. i want to compare that hosts with another list which i get by running a query in splunk. The outcome i am expecting is, Y if it is matching in both the list 'N' if it is there on the first list but not on the second.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2015 11:36:24 GMT</pubDate>
    <dc:creator>anoopambli</dc:creator>
    <dc:date>2015-07-09T11:36:24Z</dc:date>
    <item>
      <title>Splunk query to combine two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-combine-two-searches/m-p/114425#M30260</link>
      <description>&lt;P&gt;I haven't written a complex splunk query for a while, please help me in getting started with this. This is what i am trying to do,&lt;/P&gt;

&lt;P&gt;I have a master list of hosts which i have loaded into Splunk. i want to compare that hosts with another list which i get by running a query in splunk. The outcome i am expecting is, Y if it is matching in both the list 'N' if it is there on the first list but not on the second.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 11:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-combine-two-searches/m-p/114425#M30260</guid>
      <dc:creator>anoopambli</dc:creator>
      <dc:date>2015-07-09T11:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to combine two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-combine-two-searches/m-p/114426#M30261</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;first search here&amp;gt; | dedup host | eval type=1 | append [search &amp;lt;second search here&amp;gt; | dedup host | eval type=2] | stats values(type) AS types dc(type) AS numTypes BY host | eval outcome=case(numTypes=2,"Y",type=1,"N",type=2, "?", 1==1,"??") |table host outcome
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jul 2015 12:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-combine-two-searches/m-p/114426#M30261</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-09T12:20:05Z</dc:date>
    </item>
  </channel>
</rss>

