<?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 Retain columns in lookup table but not creating duplicates in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514510#M144404</link>
    <description>&lt;P&gt;I have a saved search which runs every month and looks at my vulnerability events and outputs the results into a lookup table. I am deduping the "Plugin ID" value so that I am only getting unique vulnerabilities in my lookup table.&amp;nbsp; I have also added 3 extra columns to the lookup table, but the search results from the saved search will not have these columns .&amp;nbsp; I'm struggling with how to retain the values of those columns while still appending new results to the table. The search below that I have tried, is retaining the extra columns but it is duplicating the results each time the search is run.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried not using the append=t with the outputlookup but that just replaces my whole lookup table and deletes the extra columns that I need in there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way that I can use outputlookup and retain the extra columns but still deduping the plugin ID? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(state) as State, values(severity) as Severity, values(tags) as "Tags", values(plugin.name) as "Plugin Name", values(plugin_publication_date) as "Plugin Publication Date",  count by plugin_id 
| rename plugin_id as "Plugin ID", count as "Total Hosts" | eval Severity=lower(Severity) | sort num(Severity), -num("Total Hosts")
| inputlookup Vulnerabilities append=t
| dedup "Plugin ID"
| outputlookup Vulnerabilities append=t&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 18:20:46 GMT</pubDate>
    <dc:creator>tromero3</dc:creator>
    <dc:date>2020-08-17T18:20:46Z</dc:date>
    <item>
      <title>Retain columns in lookup table but not creating duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514510#M144404</link>
      <description>&lt;P&gt;I have a saved search which runs every month and looks at my vulnerability events and outputs the results into a lookup table. I am deduping the "Plugin ID" value so that I am only getting unique vulnerabilities in my lookup table.&amp;nbsp; I have also added 3 extra columns to the lookup table, but the search results from the saved search will not have these columns .&amp;nbsp; I'm struggling with how to retain the values of those columns while still appending new results to the table. The search below that I have tried, is retaining the extra columns but it is duplicating the results each time the search is run.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried not using the append=t with the outputlookup but that just replaces my whole lookup table and deletes the extra columns that I need in there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way that I can use outputlookup and retain the extra columns but still deduping the plugin ID? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(state) as State, values(severity) as Severity, values(tags) as "Tags", values(plugin.name) as "Plugin Name", values(plugin_publication_date) as "Plugin Publication Date",  count by plugin_id 
| rename plugin_id as "Plugin ID", count as "Total Hosts" | eval Severity=lower(Severity) | sort num(Severity), -num("Total Hosts")
| inputlookup Vulnerabilities append=t
| dedup "Plugin ID"
| outputlookup Vulnerabilities append=t&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 18:20:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514510#M144404</guid>
      <dc:creator>tromero3</dc:creator>
      <dc:date>2020-08-17T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Retain columns in lookup table but not creating duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514516#M144406</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats values(state) as State, values(severity) as Severity, values(tags) as "Tags", values(plugin.name) as "Plugin Name", values(plugin_publication_date) as "Plugin Publication Date",  count by plugin_id 
| rename plugin_id as "Plugin ID", count as "Total Hosts" | eval Severity=lower(Severity) | sort num(Severity), -num("Total Hosts")
| inputlookup Vulnerabilities append=t
| stats values(*) by  "Plugin ID"
| outputlookup Vulnerabilities append=t
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stats values(*) is just to give you an idea, you can change.&lt;/P&gt;&lt;P&gt;upvote if my answer solves your problem&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 19:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514516#M144406</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-17T19:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Retain columns in lookup table but not creating duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514524#M144412</link>
      <description>&lt;P&gt;Hmm I dont understand.&amp;nbsp; When I do that, all it does is add extra duplicate values in the column for Plugin ID....&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 19:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514524#M144412</guid>
      <dc:creator>tromero3</dc:creator>
      <dc:date>2020-08-17T19:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retain columns in lookup table but not creating duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514530#M144415</link>
      <description>&lt;P&gt;can you provide csv lookup header.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 19:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514530#M144415</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-17T19:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Retain columns in lookup table but not creating duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514560#M144428</link>
      <description>&lt;P&gt;Plugin ID, State, Severity, Tags, Plugin Name, Plugin Publication Date, Total Hosts, Case Number, Date Submitted, Days Since Submitted&lt;/P&gt;&lt;P&gt;The last 3 are the values that are not in the search, only lookup table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 22:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retain-columns-in-lookup-table-but-not-creating-duplicates/m-p/514560#M144428</guid>
      <dc:creator>tromero3</dc:creator>
      <dc:date>2020-08-17T22:31:37Z</dc:date>
    </item>
  </channel>
</rss>

