<?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: How to search which hosts are missing patches using a lookup with a list of patches that should be installed for each hostname? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-which-hosts-are-missing-patches-using-a-lookup/m-p/193133#M55559</link>
    <description>&lt;P&gt;Simple - do an inputlookup of your csv and NOT that with the search that produces your list of installed patches. That should give you the entries which are in the csv but not in the data of your index.&lt;/P&gt;

&lt;P&gt;It should look something along the lines of&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup your_csv NOT [search your_search | table name, patch]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try the subsearch alone with a &lt;CODE&gt;| format&lt;/CODE&gt; at the end to see how the result is passed to the NOT of the inputlookup - it's a simple ((name=x AND patch=y) OR (name=a AND patch=b) ... ), which is exactly what you want for your NOT.&lt;/P&gt;

&lt;P&gt;Of course this only works if the column names are the same in your csv and the search, but that can easily be done with a rename if neccessary.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2015 06:31:12 GMT</pubDate>
    <dc:creator>jeffland</dc:creator>
    <dc:date>2015-07-06T06:31:12Z</dc:date>
    <item>
      <title>How to search which hosts are missing patches using a lookup with a list of patches that should be installed for each hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-which-hosts-are-missing-patches-using-a-lookup/m-p/193132#M55558</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a list of events about patches installed on my hosts (about 3k) which look like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Hostname1, PatchId1
Hostname1, PatchId2
Hostname2, PatchId2
Hostname2, PatchId3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also I have lookup with list of patches which should be installed on each hostname.&lt;BR /&gt;
I know that some are hosts missing some patches and I need to find which hosts are missing which patches.&lt;/P&gt;

&lt;P&gt;Please help me to understand a way how to do this.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 06:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-which-hosts-are-missing-patches-using-a-lookup/m-p/193132#M55558</guid>
      <dc:creator>ArsenyKapralov</dc:creator>
      <dc:date>2015-07-06T06:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to search which hosts are missing patches using a lookup with a list of patches that should be installed for each hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-which-hosts-are-missing-patches-using-a-lookup/m-p/193133#M55559</link>
      <description>&lt;P&gt;Simple - do an inputlookup of your csv and NOT that with the search that produces your list of installed patches. That should give you the entries which are in the csv but not in the data of your index.&lt;/P&gt;

&lt;P&gt;It should look something along the lines of&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup your_csv NOT [search your_search | table name, patch]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try the subsearch alone with a &lt;CODE&gt;| format&lt;/CODE&gt; at the end to see how the result is passed to the NOT of the inputlookup - it's a simple ((name=x AND patch=y) OR (name=a AND patch=b) ... ), which is exactly what you want for your NOT.&lt;/P&gt;

&lt;P&gt;Of course this only works if the column names are the same in your csv and the search, but that can easily be done with a rename if neccessary.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 06:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-which-hosts-are-missing-patches-using-a-lookup/m-p/193133#M55559</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-07-06T06:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to search which hosts are missing patches using a lookup with a list of patches that should be installed for each hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-which-hosts-are-missing-patches-using-a-lookup/m-p/193134#M55560</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;But I think this search will only find first match and it will not show correct results for thousand of hosts for each one. How can I do this?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 15:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-which-hosts-are-missing-patches-using-a-lookup/m-p/193134#M55560</guid>
      <dc:creator>ArsenyKapralov</dc:creator>
      <dc:date>2015-09-18T15:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search which hosts are missing patches using a lookup with a list of patches that should be installed for each hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-which-hosts-are-missing-patches-using-a-lookup/m-p/193135#M55561</link>
      <description>&lt;P&gt;Have you tried switching the main and the subsearch then?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-which-hosts-are-missing-patches-using-a-lookup/m-p/193135#M55561</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-09-21T08:41:25Z</dc:date>
    </item>
  </channel>
</rss>

