<?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 How to exclude duplicate events from beign summary indexed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-duplicate-events-from-beign-summary-indexed/m-p/93791#M19509</link>
    <description>&lt;P&gt;Hello, i have log comming in, which i use to create summary index,&lt;BR /&gt;
       here is the flow:&lt;/P&gt;

&lt;P&gt;i get some logs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;location=1 starttime=2011-09-26T05:10:00
location=1 starttime=2011-10-26T05:10:00
location=2 starttime=2011-09-26T05:20:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;create summary index from above data based on _indextime in last hour&lt;/P&gt;

&lt;P&gt;after couple of days i get a duplicate of first record&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;location=1 starttime=2011-09-26T05:00:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i want above record to be excluded from being used in summmary index,&lt;/P&gt;

&lt;P&gt;basically  what i need is if a record has more than one copy in last 30 days then do not use it in summary index query, even its _indextime is in last hour&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2011 18:13:02 GMT</pubDate>
    <dc:creator>desi</dc:creator>
    <dc:date>2011-10-18T18:13:02Z</dc:date>
    <item>
      <title>How to exclude duplicate events from beign summary indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-duplicate-events-from-beign-summary-indexed/m-p/93791#M19509</link>
      <description>&lt;P&gt;Hello, i have log comming in, which i use to create summary index,&lt;BR /&gt;
       here is the flow:&lt;/P&gt;

&lt;P&gt;i get some logs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;location=1 starttime=2011-09-26T05:10:00
location=1 starttime=2011-10-26T05:10:00
location=2 starttime=2011-09-26T05:20:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;create summary index from above data based on _indextime in last hour&lt;/P&gt;

&lt;P&gt;after couple of days i get a duplicate of first record&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;location=1 starttime=2011-09-26T05:00:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i want above record to be excluded from being used in summmary index,&lt;/P&gt;

&lt;P&gt;basically  what i need is if a record has more than one copy in last 30 days then do not use it in summary index query, even its _indextime is in last hour&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2011 18:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-duplicate-events-from-beign-summary-indexed/m-p/93791#M19509</guid>
      <dc:creator>desi</dc:creator>
      <dc:date>2011-10-18T18:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude duplicate events from beign summary indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-duplicate-events-from-beign-summary-indexed/m-p/93792#M19510</link>
      <description>&lt;P&gt;I'm not 100% clear on your questions, but here is my best shot from what I understand.&lt;/P&gt;

&lt;P&gt;You could edit the search that is generatign the summary results to include a join with the existing events in the summary index (with earliest=-30d). Then exclude those events found. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=testindex inSummary="F" | join location, starttime type=inner [search index=testindex_summary earliest=-30d | eval inSummary="T"] | search inSummary="False"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hopefully that gives you a starting point.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2011 20:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-duplicate-events-from-beign-summary-indexed/m-p/93792#M19510</guid>
      <dc:creator>RyanAdams</dc:creator>
      <dc:date>2011-10-18T20:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude duplicate events from beign summary indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-duplicate-events-from-beign-summary-indexed/m-p/93793#M19511</link>
      <description>&lt;P&gt;4 years later in 2015 I use "dedup".&lt;BR /&gt;
Example :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=sourceA  Hostname="myhost" | join Hostname [search source=sourceB] | dedup Application Hostname Produit| table Application Hostname Produit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope it will help someone&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-duplicate-events-from-beign-summary-indexed/m-p/93793#M19511</guid>
      <dc:creator>sroux</dc:creator>
      <dc:date>2015-09-14T13:37:20Z</dc:date>
    </item>
  </channel>
</rss>

