<?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 help on comparison between 2 lookup in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/help-on-comparison-between-2-lookup/m-p/462479#M8101</link>
    <description>&lt;P&gt;hi&lt;/P&gt;

&lt;P&gt;I use the search below in order to retrieve the fields host ,SITE and STATUS from a lookup and to compare them with the field host in another lookup&lt;BR /&gt;
    | inputlookup host.csv &lt;BR /&gt;
    | lookup lookup_cmdb_fo_all.csv HOSTNAME as host output SITE STATUS&lt;BR /&gt;
    | stats values(SITE) as SITE, values(STATUS) as STATUS by host&lt;/P&gt;

&lt;P&gt;Now I need to display the host that exist in a lookup but not in another lookup&lt;BR /&gt;
could you help me please??&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:38:55 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2020-09-30T02:38:55Z</dc:date>
    <item>
      <title>help on comparison between 2 lookup</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-on-comparison-between-2-lookup/m-p/462479#M8101</link>
      <description>&lt;P&gt;hi&lt;/P&gt;

&lt;P&gt;I use the search below in order to retrieve the fields host ,SITE and STATUS from a lookup and to compare them with the field host in another lookup&lt;BR /&gt;
    | inputlookup host.csv &lt;BR /&gt;
    | lookup lookup_cmdb_fo_all.csv HOSTNAME as host output SITE STATUS&lt;BR /&gt;
    | stats values(SITE) as SITE, values(STATUS) as STATUS by host&lt;/P&gt;

&lt;P&gt;Now I need to display the host that exist in a lookup but not in another lookup&lt;BR /&gt;
could you help me please??&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:38:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-on-comparison-between-2-lookup/m-p/462479#M8101</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-09-30T02:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: help on comparison between 2 lookup</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-on-comparison-between-2-lookup/m-p/462480#M8102</link>
      <description>&lt;P&gt;Hi jip31,&lt;BR /&gt;
do you want this in the same search or in another one?&lt;/P&gt;

&lt;P&gt;if in another one it's easy:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup host.csv NOT [ |inputlookup lookup_cmdb_fo_all.csv | rename HOSTNAME AS host | fields host ]
| ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if instead you want this in the same search you have to modify your search in this way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup host.csv
| lookup lookup_cmdb_fo_all.csv HOSTNAME as host output SITE STATUS
| stats values(SITE) as SITE, values(STATUS) as STATUS by host
| eval Status=if(isnull(SITE),"Not present","Present")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 10:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-on-comparison-between-2-lookup/m-p/462480#M8102</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-17T10:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: help on comparison between 2 lookup</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-on-comparison-between-2-lookup/m-p/462481#M8103</link>
      <description>&lt;P&gt;hi guiseppe perfect thanks&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 10:58:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-on-comparison-between-2-lookup/m-p/462481#M8103</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-10-17T10:58:51Z</dc:date>
    </item>
  </channel>
</rss>

