<?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 can I remove duplicate device_id from search within 5 min interval for 24 hours search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-remove-duplicate-device-id-from-search-within-5-min/m-p/357195#M105675</link>
    <description>&lt;P&gt;You are looking for the&lt;CODE&gt;dc()&lt;/CODE&gt; function - distinct count.&lt;/P&gt;

&lt;P&gt;Try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | bin _time span=5m
 | stats dc(device_id) by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Sep 2017 05:00:31 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-09-29T05:00:31Z</dc:date>
    <item>
      <title>How can I remove duplicate device_id from search within 5 min interval for 24 hours search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-remove-duplicate-device-id-from-search-within-5-min/m-p/357194#M105674</link>
      <description>&lt;P&gt;How to remove duplicate device_id within five min interval for 24 hours search,&lt;/P&gt;

&lt;P&gt;for example :&lt;BR /&gt;
10:00am  device id =aaa123&lt;BR /&gt;
10:01am   device id =aaa123&lt;BR /&gt;
10:02am   device id =aaa124&lt;BR /&gt;
10:03am   device id =aaa123&lt;BR /&gt;
10:04am   device id =aaa123&lt;/P&gt;

&lt;P&gt;10:05am   device id =aaa123&lt;BR /&gt;
10:08am   device id =aaa123&lt;/P&gt;

&lt;P&gt;10:15am   device id =aaa123&lt;/P&gt;

&lt;P&gt;10:25am   device id =aaa123&lt;/P&gt;

&lt;P&gt;expected result:&lt;BR /&gt;
_time                count &lt;BR /&gt;
10:00 am            2&lt;BR /&gt;
10:05 am            1&lt;BR /&gt;
10:10 am            0&lt;BR /&gt;
10:15 am            1&lt;BR /&gt;
10:20 am            0&lt;BR /&gt;
10:25am            1&lt;BR /&gt;
10:30 am            0&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 19:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-remove-duplicate-device-id-from-search-within-5-min/m-p/357194#M105674</guid>
      <dc:creator>mk197m</dc:creator>
      <dc:date>2017-09-25T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove duplicate device_id from search within 5 min interval for 24 hours search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-remove-duplicate-device-id-from-search-within-5-min/m-p/357195#M105675</link>
      <description>&lt;P&gt;You are looking for the&lt;CODE&gt;dc()&lt;/CODE&gt; function - distinct count.&lt;/P&gt;

&lt;P&gt;Try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | bin _time span=5m
 | stats dc(device_id) by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Sep 2017 05:00:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-remove-duplicate-device-id-from-search-within-5-min/m-p/357195#M105675</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-29T05:00:31Z</dc:date>
    </item>
  </channel>
</rss>

