<?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: Remove  all dupicates in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-duplicates/m-p/625647#M107534</link>
    <description>&lt;P&gt;The result table you say is after the first search. What exactly is not working after you put in the dedup src_ip and the additional where constraint?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jan 2023 23:35:19 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-01-02T23:35:19Z</dc:date>
    <item>
      <title>How to remove  all duplicates?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-duplicates/m-p/625532#M107506</link>
      <description>&lt;P&gt;Hi, i got this query&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats summariesonly=t allow_old_summaries=t dc(All_Traffic.dest_port) as num_dest_port dc(All_Traffic.dest_ip) as num_dest_ip from datamodel=Network_Traffic by All_Traffic.src_ip, All_Traffic.action
| rename "All_Traffic.*" as "*"
| where num_dest_port &amp;gt; 100 OR num_dest_ip &amp;gt; 100 AND num_dest_port &amp;gt; num_dest_ip
| eval desv=num_dest_port / num_dest_ip
| where desv &amp;gt; 1 AND action!="blocked"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the result is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joango_1-1672404224411.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23167i623494FFB3700E4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joango_1-1672404224411.png" alt="joango_1-1672404224411.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My solution is half way done because it deletes most of them but not the ones that the src_ip is duplicate and the desv is diferent from one another (I don't know why). What I need is that all duplicates with the same ip are deleted.&lt;/P&gt;
&lt;P&gt;This is what I have --&amp;gt;&amp;nbsp; dedup src_ip | where desv &amp;gt; 1 AND action!="blocked" AND action!="teardown"&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 02:05:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-duplicates/m-p/625532#M107506</guid>
      <dc:creator>joango</dc:creator>
      <dc:date>2023-01-03T02:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Remove  all dupicates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-duplicates/m-p/625647#M107534</link>
      <description>&lt;P&gt;The result table you say is after the first search. What exactly is not working after you put in the dedup src_ip and the additional where constraint?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 23:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-duplicates/m-p/625647#M107534</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-01-02T23:35:19Z</dc:date>
    </item>
  </channel>
</rss>

