<?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: Is it possible to dedup by span? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70952#M17760</link>
    <description>&lt;P&gt;Probably, but you'll have to tell me more because that pseudo-search-syntax is pretty ambiguous.  To take a wild guess and at least tell you something interesting -- you can use the bin command to bucket numeric quantities, and then use stats/chart/timechart to group by those bucketed values.   ie   "* | bin someNumericField span=100 | stats count over someNumericField" will yield a nice chart with "0-100", "100-200",  "200-300" as the x-axis.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jun 2012 18:52:58 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2012-06-09T18:52:58Z</dc:date>
    <item>
      <title>Is it possible to dedup by span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70948#M17756</link>
      <description>&lt;P&gt;I'm try to chart some data using span=1d and was wondering if it possible to dedup data across a timerange with span?  &lt;/P&gt;

&lt;P&gt;For example, I want to dedup duplicate users in a single day, but I also want those users to show up in previous days when I'm charting over a week.  &lt;/P&gt;

&lt;P&gt;I'm guessing * | dedup user | timechart span=7d  .. would eliminate users from showing up in day 2-7.  &lt;/P&gt;

&lt;P&gt;I hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 18:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70948#M17756</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2012-06-08T18:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dedup by span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70949#M17757</link>
      <description>&lt;P&gt;Makes sense. Depending on what you ultimately want out of the logs, something like this could work;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| stats values(user) by date_wday
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or date_mday if that suits you better. &lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;or rather use;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... earliest=-X latest=-Y | timechart span=1d values(user)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 19:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70949#M17757</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-08T19:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dedup by span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70950#M17758</link>
      <description>&lt;P&gt;&lt;CODE&gt;* | timechart dc(user) span=7d&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;where dc means "distinct count of". &lt;/P&gt;

&lt;P&gt;This will make timechart count the distinct users per bucket, and since the span argument is setting the bucket size to 7 days,  in the end you'll be counting the distinct users in every 7 day period. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 22:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70950#M17758</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-06-08T22:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dedup by span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70951#M17759</link>
      <description>&lt;P&gt;I'll test this, thank you.  Is there a way to chart top(field) limit=X with using a span?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2012 07:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70951#M17759</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2012-06-09T07:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dedup by span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70952#M17760</link>
      <description>&lt;P&gt;Probably, but you'll have to tell me more because that pseudo-search-syntax is pretty ambiguous.  To take a wild guess and at least tell you something interesting -- you can use the bin command to bucket numeric quantities, and then use stats/chart/timechart to group by those bucketed values.   ie   "* | bin someNumericField span=100 | stats count over someNumericField" will yield a nice chart with "0-100", "100-200",  "200-300" as the x-axis.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2012 18:52:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-dedup-by-span/m-p/70952#M17760</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-06-09T18:52:58Z</dc:date>
    </item>
  </channel>
</rss>

