<?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: Why isnt the dedup command not working in some fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-isnt-the-dedup-command-not-working-in-some-fields/m-p/410533#M118467</link>
    <description>&lt;P&gt;Hi payton_tayvion,&lt;BR /&gt;
ay first probably it's a copy error, but at the end you have dedeup instead dedup.&lt;BR /&gt;
Then are there differences using or not the sort command?&lt;BR /&gt;
Then have you more than 50,000 results? if yes add 0 to the sort command ( &lt;CODE&gt;| sort 0 l2&lt;/CODE&gt; ).&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2019 12:24:30 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-07-31T12:24:30Z</dc:date>
    <item>
      <title>Why isnt the dedup command not working in some fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-isnt-the-dedup-command-not-working-in-some-fields/m-p/410532#M118466</link>
      <description>&lt;P&gt;Im having an issue where my contact field and l2 field is showing duplicates of the same name and when i use the dedup command nothing happens. Here's the command:&lt;BR /&gt;
&lt;CODE&gt;| tstats count(Vulnerabilities.signature) as "Total Vulnerabilities" from datamodel="Vulnerabilities" where (nodename="Vulnerabilities" Vulnerabilities.severity="high" OR Vulnerabilities.severity="critical" Vulnerabilities.dest_bunit IN (*) Vulnerabilities.property IN (*)) by Vulnerabilities.signature Vulnerabilities.property&lt;BR /&gt;
| rename Vulnerabilities.property AS Property&lt;BR /&gt;
| lookup kv_opsdb property as Property output contact&lt;BR /&gt;
| lookup aws_accounts account_number AS Property OUTPUT account_name&lt;BR /&gt;
| eval Property=if(isnull(account_name), Property, account_name)&lt;BR /&gt;
| lookup workday.csv shortid as contact output l2&lt;BR /&gt;
| sort - "Total Vulnerabilities"&lt;BR /&gt;
| dedeup l2&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Heres the result:&lt;BR /&gt;
&lt;CODE&gt;Vulnerabilities.signature          Total Vulnerabilities       Contact   L2&lt;BR /&gt;
CentOS 7 : bind (CESA-2019:1294)         129345                Jane Doe John Doe&lt;BR /&gt;
                                                               Jane Doe John Doe&lt;BR /&gt;
                                                               Jane Doe John Doe&lt;BR /&gt;
                                                               Jane Doe John Doe&lt;BR /&gt;
                                                               Jane Doe John Doe&lt;BR /&gt;
                                                               Jane Doe John Doe&lt;BR /&gt;
                                                               Jane Doe John Doe&lt;/CODE&gt;&lt;BR /&gt;
and it goes on for a couple more hundred times. i just need the contact name and l2 showing once&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 16:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-isnt-the-dedup-command-not-working-in-some-fields/m-p/410532#M118466</guid>
      <dc:creator>payton_tayvion</dc:creator>
      <dc:date>2019-07-30T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why isnt the dedup command not working in some fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-isnt-the-dedup-command-not-working-in-some-fields/m-p/410533#M118467</link>
      <description>&lt;P&gt;Hi payton_tayvion,&lt;BR /&gt;
ay first probably it's a copy error, but at the end you have dedeup instead dedup.&lt;BR /&gt;
Then are there differences using or not the sort command?&lt;BR /&gt;
Then have you more than 50,000 results? if yes add 0 to the sort command ( &lt;CODE&gt;| sort 0 l2&lt;/CODE&gt; ).&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 12:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-isnt-the-dedup-command-not-working-in-some-fields/m-p/410533#M118467</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-07-31T12:24:30Z</dc:date>
    </item>
  </channel>
</rss>

