<?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 How to prevent results from an input file being excluded after performing a lookup against another input in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538658#M152297</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following search:&lt;/P&gt;&lt;P&gt;| inputlookup ldap_assets.csv&lt;BR /&gt;| lookup existing_assets dns output ip bunit category city country owner priority&lt;BR /&gt;| outputlookup create_empty=false createinapp=true override_if_empty=false merged_assets.csv&lt;/P&gt;&lt;P&gt;The 'ldap_assets.csv' contains a list of assets and their attributes. The search then does a lookup command on 'existing_assets' lookup which contains other asset attributes (a manually created list).&amp;nbsp; The search then outputs results to a merged_assets.csv.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem im having is that if a record exists in existing_assets, but it doesnt exist in ldap_assets.csv, it is being excluded from results of the outputlookup command. I would like those existing records to still be included in the merged_assets.csv file. So basically I want the two files to merge without any exclusions after the lookup.&lt;/P&gt;&lt;P&gt;Can somebody provide assistance on where on going wrong?&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 17:45:54 GMT</pubDate>
    <dc:creator>ezmo1982</dc:creator>
    <dc:date>2021-02-04T17:45:54Z</dc:date>
    <item>
      <title>How to prevent results from an input file being excluded after performing a lookup against another input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538658#M152297</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following search:&lt;/P&gt;&lt;P&gt;| inputlookup ldap_assets.csv&lt;BR /&gt;| lookup existing_assets dns output ip bunit category city country owner priority&lt;BR /&gt;| outputlookup create_empty=false createinapp=true override_if_empty=false merged_assets.csv&lt;/P&gt;&lt;P&gt;The 'ldap_assets.csv' contains a list of assets and their attributes. The search then does a lookup command on 'existing_assets' lookup which contains other asset attributes (a manually created list).&amp;nbsp; The search then outputs results to a merged_assets.csv.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem im having is that if a record exists in existing_assets, but it doesnt exist in ldap_assets.csv, it is being excluded from results of the outputlookup command. I would like those existing records to still be included in the merged_assets.csv file. So basically I want the two files to merge without any exclusions after the lookup.&lt;/P&gt;&lt;P&gt;Can somebody provide assistance on where on going wrong?&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 17:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538658#M152297</guid>
      <dc:creator>ezmo1982</dc:creator>
      <dc:date>2021-02-04T17:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent results from an input file being excluded after performing a lookup against another input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538676#M152303</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225682"&gt;@ezmo1982&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup ldap_assets.csv 
| append 
    [| inputlookup existing_assets] 
| outputlookup create_empty=false createinapp=true override_if_empty=false merged_assets.csv&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Feb 2021 19:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538676#M152303</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-04T19:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent results from an input file being excluded after performing a lookup against another input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538705#M152310</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225682"&gt;@ezmo1982&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load the two files with two inputlookups, then merge the two data sets using stats values&amp;nbsp; grouping by the lookup fields.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup ldap_assets.csv
| append [
  | inputlookup existing_assets
]
| stats values(*) as * by dns output ip bunit category city country owner priority
| outputlookup create_empty=false createinapp=true override_if_empty=false merged_assets.csv
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;should do the trick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 02:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538705#M152310</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-02-05T02:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent results from an input file being excluded after performing a lookup against another input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538795#M152344</link>
      <description>&lt;P&gt;Thanks. Seems like the stats command is resulting in zero records. But turns out i dont need it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 16:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538795#M152344</guid>
      <dc:creator>ezmo1982</dc:creator>
      <dc:date>2021-02-05T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent results from an input file being excluded after performing a lookup against another input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538796#M152345</link>
      <description>&lt;P&gt;Thanks. There are some duplicates in there so i added a dedup command and now i have the results i need.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 16:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-results-from-an-input-file-being-excluded-after/m-p/538796#M152345</guid>
      <dc:creator>ezmo1982</dc:creator>
      <dc:date>2021-02-05T16:17:19Z</dc:date>
    </item>
  </channel>
</rss>

