<?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: Report Dedup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Report-Dedup/m-p/106627#M27742</link>
    <description>&lt;P&gt;martin_muller is essentially right, the solution below might be slightly more efficient, as the &lt;CODE&gt;stats&lt;/CODE&gt; is performed on only the smaller set of data. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=xxx index=yyy earliest=@d NOT [sourcetype=xxx index=yyy earliest=-1d@d latest=@d | dedup shost | fields + shost] | stats c by shost&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The subsearch will execute first and return the distinct set of &lt;CODE&gt;shost&lt;/CODE&gt; for the previous day, so that the outer search will effectively be;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=xxx index=yyy earliest=@d NOT ((shost=host1) OR (shost=host2) OR (shost=host3)) | stats c by shost&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2013 06:28:29 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-04-26T06:28:29Z</dc:date>
    <item>
      <title>Report Dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-Dedup/m-p/106625#M27740</link>
      <description>&lt;P&gt;Is there a way to eliminate duplicates by reports?  Specifically what I'm looking to do is run a report every 24hrs for X range | stat count by shost.  I don't want the report to show any hosts that showed up on the previous report.  I know how to eliminate duplicates from a single report but don't know if it's possible to "dedup" on a previously run report.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 19:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-Dedup/m-p/106625#M27740</guid>
      <dc:creator>TucoRameriz</dc:creator>
      <dc:date>2013-04-25T19:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Report Dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-Dedup/m-p/106626#M27741</link>
      <description>&lt;P&gt;You could do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your  report with stat count for the current day | search NOT [query for shost values in the previous day]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will remove rows if the shost value appeared in the previous day... once translated into proper splunk commands of course.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 21:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-Dedup/m-p/106626#M27741</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-04-25T21:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Report Dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-Dedup/m-p/106627#M27742</link>
      <description>&lt;P&gt;martin_muller is essentially right, the solution below might be slightly more efficient, as the &lt;CODE&gt;stats&lt;/CODE&gt; is performed on only the smaller set of data. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=xxx index=yyy earliest=@d NOT [sourcetype=xxx index=yyy earliest=-1d@d latest=@d | dedup shost | fields + shost] | stats c by shost&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The subsearch will execute first and return the distinct set of &lt;CODE&gt;shost&lt;/CODE&gt; for the previous day, so that the outer search will effectively be;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=xxx index=yyy earliest=@d NOT ((shost=host1) OR (shost=host2) OR (shost=host3)) | stats c by shost&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2013 06:28:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-Dedup/m-p/106627#M27742</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-04-26T06:28:29Z</dc:date>
    </item>
  </channel>
</rss>

