<?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 remove the duplicate logs or events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196040#M38992</link>
    <description>&lt;P&gt;The timestamps and worker thread numbers are different as well.&lt;/P&gt;

&lt;P&gt;It may be that all these entries represent the same problem or incident - but these are definitely unique events.&lt;/P&gt;

&lt;P&gt;As Shane points out, you will need to create the fields - and decide how you define "duplicate" in this context. I'd be interested in seeing your definition of "duplicate".&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2014 06:11:51 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2014-01-06T06:11:51Z</dc:date>
    <item>
      <title>How to remove the duplicate logs or events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196036#M38988</link>
      <description>&lt;P&gt;I have this serch string &lt;BR /&gt;
source=/xxxx/log/xxxx/server.log ERROR&lt;/P&gt;

&lt;P&gt;and i got this:&lt;/P&gt;

&lt;P&gt;2014-01-06 13:28:33,828 ERROR &lt;A href="https://community.splunk.com/WorkerThread#2%5B10.73.2.135:51693%5D"&gt;xxx.xxx.xxxUsersRolesLoginModule&lt;/A&gt; Failed to load users/passwords/role files&lt;BR /&gt;
2014-01-06 13:28:32,878 ERROR &lt;A href="https://community.splunk.com/WorkerThread#1%5B10.73.2.135:51592%5D"&gt;xxx.xxx.xxxUsersRolesLoginModule&lt;/A&gt; Failed to load users/passwords/role files&lt;BR /&gt;
2014-01-06 13:28:32,814 ERROR &lt;A href="https://community.splunk.com/WorkerThread#1%5B10.73.2.135:51588%5D"&gt;xxx.xxx.xxxUsersRolesLoginModule&lt;/A&gt; Failed to load users/passwords/role files&lt;/P&gt;

&lt;P&gt;and so on..&lt;/P&gt;

&lt;P&gt;Question: How to remove the duplicate?I tried some of the suggestions I found on this site but to no avail. I used dedup and uniq but it returned the same number of duplicate logs. Please advise what is the best way to remove duplicates and retain just one instance of logs.Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2014 02:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196036#M38988</guid>
      <dc:creator>Isaias_Garcia</dc:creator>
      <dc:date>2014-01-06T02:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the duplicate logs or events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196037#M38989</link>
      <description>&lt;P&gt;These are not duplicate logs. If you notice, the IP and port are different for each entry above. If you want to remove these, you will have to do field extraction and leave out the WorkerThread field from the dedup list.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2014 02:58:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196037#M38989</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2014-01-06T02:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the duplicate logs or events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196038#M38990</link>
      <description>&lt;P&gt;Hi Shane, thanks for the prompts response. These are actually a duplicate logs.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2014 03:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196038#M38990</guid>
      <dc:creator>Isaias_Garcia</dc:creator>
      <dc:date>2014-01-06T03:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the duplicate logs or events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196039#M38991</link>
      <description>&lt;P&gt;Not in the eyes of Splunk. Because the port numbers are different, they are unique. That is why you will have to do field extraction to get them to be seen as duplicates.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2014 03:05:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196039#M38991</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2014-01-06T03:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the duplicate logs or events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196040#M38992</link>
      <description>&lt;P&gt;The timestamps and worker thread numbers are different as well.&lt;/P&gt;

&lt;P&gt;It may be that all these entries represent the same problem or incident - but these are definitely unique events.&lt;/P&gt;

&lt;P&gt;As Shane points out, you will need to create the fields - and decide how you define "duplicate" in this context. I'd be interested in seeing your definition of "duplicate".&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2014 06:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196040#M38992</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-01-06T06:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the duplicate logs or events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196041#M38993</link>
      <description>&lt;P&gt;As suggested by ShaneNewman/Iguinn, all these entries are unique as they have different timestamp/workerthread/IP. The only thing duplicate thing is the error message among these events. To filter the duplicate events based on the error message only, you can do field extraction or use rex command, something like below: (rex example)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=/xxxx/log/xxxx/server.log ERROR | rex "\]\)\s(?&amp;lt;ErrorMessage&amp;gt;.*)" | dedup ErrorMessage
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jan 2014 16:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196041#M38993</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-06T16:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the duplicate logs or events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196042#M38994</link>
      <description>&lt;P&gt;Hello- Thanks for your suggestion however it did not seem to work... so for the time being i just used NOT command to atleast remove all the duplicate logs. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 06:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196042#M38994</guid>
      <dc:creator>Isaias_Garcia</dc:creator>
      <dc:date>2014-01-07T06:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the duplicate logs or events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196043#M38995</link>
      <description>&lt;P&gt;Thanks Iguinn.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 06:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-the-duplicate-logs-or-events/m-p/196043#M38995</guid>
      <dc:creator>Isaias_Garcia</dc:creator>
      <dc:date>2014-01-07T06:45:37Z</dc:date>
    </item>
  </channel>
</rss>

