<?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: I want to add new entry to my lookups and older values are overridden by new values. in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-new-entry-to-lookups-and-older-values-are-overridden/m-p/640616#M16121</link>
    <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;append=true&lt;/FONT&gt; option to &lt;FONT face="courier new,courier"&gt;outputlookup&lt;/FONT&gt; tells Splunk to keep the existing lookup file content.&amp;nbsp; To replace the content with the current result set, use &lt;FONT face="courier new,courier"&gt;append=false&lt;/FONT&gt; (the default).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup test1_checks.csv
| eval Alert_type="test2", Correlated_alert="test2", Correlation_type=0
| outputlookup test1_checks.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;mentioned, to eliminate duplicate entries, you need to use the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;dedup&lt;/FONT&gt; command.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 14:25:19 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-04-19T14:25:19Z</dc:date>
    <item>
      <title>How to add new entry to lookups and older values are overridden by new values?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-new-entry-to-lookups-and-older-values-are-overridden/m-p/640574#M16116</link>
      <description>&lt;P&gt;Why i am getting Duplicate entries while using outputlookups.&lt;/P&gt;
&lt;P&gt;Query:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;|inputlookup append=t test1_checks.csv| eval Alert_type="test2", Correlated_alert="test2", Correlation_type=0| outputlookup append=true test1_checks.csv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Result:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Alert Type&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Correlated_alert&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;test2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;test2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;test2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;test2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;test2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I need only one entry for all kind of entries in Alert_type and Correlated_alert.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Kindly help&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 21:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-new-entry-to-lookups-and-older-values-are-overridden/m-p/640574#M16116</guid>
      <dc:creator>sagar_shubham23</dc:creator>
      <dc:date>2023-04-19T21:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add new entry to my lookups and older values are overridden by new values.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-new-entry-to-lookups-and-older-values-are-overridden/m-p/640615#M16120</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup append=t test1_checks.csv
| append [| makeresults | eval Alert_type="test2", Correlated_alert="test2", Correlation_type=0 | table Alert_type Correlated_alert Correlation_type ]
| stats last(Correlation_type) as Correlation_type by Alert_type Correlated_alert
| outputlookup append=true test1_checks.csv&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-new-entry-to-lookups-and-older-values-are-overridden/m-p/640615#M16120</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2023-04-19T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add new entry to my lookups and older values are overridden by new values.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-new-entry-to-lookups-and-older-values-are-overridden/m-p/640616#M16121</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;append=true&lt;/FONT&gt; option to &lt;FONT face="courier new,courier"&gt;outputlookup&lt;/FONT&gt; tells Splunk to keep the existing lookup file content.&amp;nbsp; To replace the content with the current result set, use &lt;FONT face="courier new,courier"&gt;append=false&lt;/FONT&gt; (the default).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup test1_checks.csv
| eval Alert_type="test2", Correlated_alert="test2", Correlation_type=0
| outputlookup test1_checks.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;mentioned, to eliminate duplicate entries, you need to use the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;dedup&lt;/FONT&gt; command.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-new-entry-to-lookups-and-older-values-are-overridden/m-p/640616#M16121</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-19T14:25:19Z</dc:date>
    </item>
  </channel>
</rss>

