<?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 exclude duplicates when using outputlookup ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584058#M203398</link>
    <description>&lt;P&gt;This is how I would normally do it. It avoids doing a subsearch.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| append [| inputlookup Stored_Email_lookups.csv]
| dedup Email User_Id 
| table Email User_Id 
| outputlookup Stored_Email_lookups.csv&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 08 Feb 2022 08:16:51 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2022-02-08T08:16:51Z</dc:date>
    <item>
      <title>How to exclude duplicates when using outputlookup ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584032#M203385</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a lookup that is a saved as a schedule report that runs once a week.&amp;nbsp; This schedule report will get the new email addresses that were populated upon the search, then write the new email addresses to another lookup. The issue I have is that I get duplicates as this search runs once a week.&amp;nbsp; Is there a way I can avoid duplicates using outputlookup?&amp;nbsp; Dedup is not doing the trick...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup Stored_Email_lookups.csv
| table Email, User_Id | rename User_Id as "New User" | dedup Email  | outputlookup  append=true "New_Incoming_Emails.csv"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Feb 2022 01:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584032#M203385</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2022-02-08T01:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude duplicates when using outputlookup ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584044#M203391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233122"&gt;@MeMilo09&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to filter the result for lookup updating using the lookup itself.&lt;/P&gt;&lt;P&gt;So, if you take the informations Email User_Id from thevents of an index, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index NOT [ | inputlookup Stored_Email_lookups.csv | fields Email User_Id ]
| dedup Email User_Id 
| table Email User_Id 
| outputlookup  append=true Stored_Email_lookups.csv&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 07:14:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584044#M203391</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-08T07:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude duplicates when using outputlookup ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584058#M203398</link>
      <description>&lt;P&gt;This is how I would normally do it. It avoids doing a subsearch.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| append [| inputlookup Stored_Email_lookups.csv]
| dedup Email User_Id 
| table Email User_Id 
| outputlookup Stored_Email_lookups.csv&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Feb 2022 08:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584058#M203398</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-02-08T08:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude duplicates when using outputlookup ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584063#M203401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you are using a sub search as mine!&lt;/P&gt;&lt;P&gt;anyway, it's another similar solution: you rebuild every time the full lookup.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 09:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584063#M203401</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-08T09:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude duplicates when using outputlookup ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584206#M203433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233122"&gt;@MeMilo09&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for your, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.:. Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 07:31:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-duplicates-when-using-outputlookup/m-p/584206#M203433</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-09T07:31:51Z</dc:date>
    </item>
  </channel>
</rss>

