<?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 get a running total of distinct users over time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29793#M6030</link>
    <description>&lt;P&gt;When I've ran this and then "Show Report"...the day is a bunch of numbers like 1312330200 which I don't recognize...how do I add to this to convert the day to something readable on the report?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="download" | bin _time span=1d as day | stats values(clientip) as ips dc(clientip) by day | streamstats dc(ips) as "Cumulative total"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Bob I.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2011 20:42:51 GMT</pubDate>
    <dc:creator>numb_lock</dc:creator>
    <dc:date>2011-08-11T20:42:51Z</dc:date>
    <item>
      <title>How can I get a running total of distinct users over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29788#M6025</link>
      <description>&lt;P&gt;I'm trying to track adoption of a new system using Splunk. I have a chart which shows distinct users per day. I'd like to also add a chart that shows &lt;EM&gt;cumulative&lt;/EM&gt; distinct users.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;e.g.:
Day    Users       Cumulative Total
1      A, B, C, D  4
2      A, B        4
3      C, D, E, F  6
4      G           7
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried streamstats but can't figure out if there is an option to do this.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2010 20:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29788#M6025</guid>
      <dc:creator>patrickw</dc:creator>
      <dc:date>2010-08-13T20:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a running total of distinct users over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29789#M6026</link>
      <description>&lt;P&gt;You could use  | uniq | stats count in a time constrainted search&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2010 22:26:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29789#M6026</guid>
      <dc:creator>Pete_Bassill</dc:creator>
      <dc:date>2010-08-13T22:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a running total of distinct users over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29790#M6027</link>
      <description>&lt;P&gt;Thanks Pete - can you be more specific about the 'time constrained search' part of the answer? I see how | uniq | gets me part way there, but how do I actually get the running total out of that?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2010 00:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29790#M6027</guid>
      <dc:creator>patrickw</dc:creator>
      <dc:date>2010-08-14T00:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a running total of distinct users over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29791#M6028</link>
      <description>&lt;P&gt;Here's an example of a search that does roughly what you want:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="download" | bin _time span=1d as day | stats values(clientip) as ips dc(clientip) by day | streamstats dc(ips) as "Cumulative total"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;bin&lt;/CODE&gt; command breaks the time into days, the &lt;CODE&gt;stats&lt;/CODE&gt; calculates the distinct users and user count per day and the &lt;CODE&gt;streamstats&lt;/CODE&gt; finds the running distinct count of users. &lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2010 07:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29791#M6028</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-14T07:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a running total of distinct users over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29792#M6029</link>
      <description>&lt;P&gt;Thanks - that worked!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 20:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29792#M6029</guid>
      <dc:creator>patrickw</dc:creator>
      <dc:date>2010-08-16T20:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a running total of distinct users over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29793#M6030</link>
      <description>&lt;P&gt;When I've ran this and then "Show Report"...the day is a bunch of numbers like 1312330200 which I don't recognize...how do I add to this to convert the day to something readable on the report?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="download" | bin _time span=1d as day | stats values(clientip) as ips dc(clientip) by day | streamstats dc(ips) as "Cumulative total"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Bob I.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2011 20:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29793#M6030</guid>
      <dc:creator>numb_lock</dc:creator>
      <dc:date>2011-08-11T20:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a running total of distinct users over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29794#M6031</link>
      <description>&lt;P&gt;Try eventtype="download" | bin _time span=1d as day | stats values(clientip) as ips dc(clientip) by day | streamstats dc(ips) as "Cumulative total" | eval ddd=strftime(day,"%b %d %Y") | table ddd "Cumulative total".&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2012 22:38:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-running-total-of-distinct-users-over-time/m-p/29794#M6031</guid>
      <dc:creator>rmorlen</dc:creator>
      <dc:date>2012-02-01T22:38:21Z</dc:date>
    </item>
  </channel>
</rss>

