<?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 to edit my timechart search to show distinct users per day and new users across all time per product? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150640#M42214</link>
    <description>&lt;P&gt;I do need the New and Dictinct users PER product...that is correct.  So for example, I modified the query to limit it to a specific use "cgm" who I know logs into the system every day&lt;/P&gt;

&lt;P&gt;index=bi "User cgm Logged" | eval Product=if(like(host,"agen%"),"Agency","Rate") | streamstats count as logincount global=false by OBIEE_USER_NAME | eval newuserevent=case(logincount=="1", 1)  | timechart span=1d dc(OBIEE_USER_NAME) sum(newuserevent) by Product&lt;/P&gt;

&lt;P&gt;What I see here is that the SUM(NEWUSERVENTS) show as 1 only for the most RECENT DAY...I would think it would show it for the "First" day.  Is Splunk defaulting to the most recent as "NEW USER" for some reason.&lt;/P&gt;

&lt;P&gt;Also..I only see the SUM(NewUserEvent) value for one of the Products...Rate..not the other (Agency).  In certain cases a userid can be the same across the two products but most often these are distinct user sets.  &lt;/P&gt;

&lt;P&gt;Not sure if that makes sense.  &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 20:14:16 GMT</pubDate>
    <dc:creator>ahsanshah</dc:creator>
    <dc:date>2020-09-28T20:14:16Z</dc:date>
    <item>
      <title>How to edit my timechart search to show distinct users per day and new users across all time per product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150636#M42210</link>
      <description>&lt;P&gt;I am new to splunk. I am trying to create a timechart based report which shows me Distinct "Users" per day as well as "new" users who have accessed the system for the first time.&lt;/P&gt;

&lt;P&gt;I can get the distinct users per day via the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bi "User * Logged" | eval Product=if(like(host,"agen%"),"Agency","Rate") | timechart span=1d dc(OBIEE_USER_NAME) by Product
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I modify this to also show a column for "new/first time" users which spans across the time (not just for that day). &lt;/P&gt;

&lt;P&gt;I tried using eventstats and some other options, but unable to figure it out.  I would assume we can do this by enhancing the timechart.  &lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 01:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150636#M42210</guid>
      <dc:creator>ahsanshah</dc:creator>
      <dc:date>2015-06-15T01:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my timechart search to show distinct users per day and new users across all time per product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150637#M42211</link>
      <description>&lt;P&gt;Use streamstats to increment a counter when a user logs in, and evaluate a field with that value is 1 (The first time they log in). You can then sum that field in the timechart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bi "User * Logged" | eval Product=if(like(host,"agen%"),"Agency","Rate") | streamstats count as logincount global=false by OBIEE_USER_NAME | eval newuserevent=case(logincount=="1", 1)  | timechart span=1d dc(OBIEE_USER_NAME) sum(newuserevent) by Product
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jun 2015 02:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150637#M42211</guid>
      <dc:creator>datasearchninja</dc:creator>
      <dc:date>2015-06-15T02:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my timechart search to show distinct users per day and new users across all time per product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150638#M42212</link>
      <description>&lt;P&gt;Thanks for the suggestion..I tried that and it does not seem to get the results I am expecting. I see slightly fewer totals in the "Sum" fields but the users seem to include those that have logged in before (on a prior day).  I would assume if the same sets of users log in daily, they will never be counted in the subsequent SUMs based on the logic for newuservent.   Its also possible I am missing something in my search that I need to include.  The UNIQUE works well..but the NEW cumulative count does not seem to work even with streamstats.  &lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 03:06:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150638#M42212</guid>
      <dc:creator>ahsanshah</dc:creator>
      <dc:date>2015-06-15T03:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my timechart search to show distinct users per day and new users across all time per product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150639#M42213</link>
      <description>&lt;P&gt;The graph is new users and distinct_users per product. IS that what you want? Or do you want new users for any product?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 03:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150639#M42213</guid>
      <dc:creator>datasearchninja</dc:creator>
      <dc:date>2015-06-15T03:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my timechart search to show distinct users per day and new users across all time per product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150640#M42214</link>
      <description>&lt;P&gt;I do need the New and Dictinct users PER product...that is correct.  So for example, I modified the query to limit it to a specific use "cgm" who I know logs into the system every day&lt;/P&gt;

&lt;P&gt;index=bi "User cgm Logged" | eval Product=if(like(host,"agen%"),"Agency","Rate") | streamstats count as logincount global=false by OBIEE_USER_NAME | eval newuserevent=case(logincount=="1", 1)  | timechart span=1d dc(OBIEE_USER_NAME) sum(newuserevent) by Product&lt;/P&gt;

&lt;P&gt;What I see here is that the SUM(NEWUSERVENTS) show as 1 only for the most RECENT DAY...I would think it would show it for the "First" day.  Is Splunk defaulting to the most recent as "NEW USER" for some reason.&lt;/P&gt;

&lt;P&gt;Also..I only see the SUM(NewUserEvent) value for one of the Products...Rate..not the other (Agency).  In certain cases a userid can be the same across the two products but most often these are distinct user sets.  &lt;/P&gt;

&lt;P&gt;Not sure if that makes sense.  &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150640#M42214</guid>
      <dc:creator>ahsanshah</dc:creator>
      <dc:date>2020-09-28T20:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my timechart search to show distinct users per day and new users across all time per product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150641#M42215</link>
      <description>&lt;P&gt;As for my point ".I only see the SUM(NewUserEvent) value for one of the Products"...you can ignore that...I was using a userid that is only specific to Rate product.  &lt;/P&gt;

&lt;P&gt;The other questions are still valid.  Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 03:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150641#M42215</guid>
      <dc:creator>ahsanshah</dc:creator>
      <dc:date>2015-06-15T03:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my timechart search to show distinct users per day and new users across all time per product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150642#M42216</link>
      <description>&lt;P&gt;Think I may have gotten it...added "reverse" prior to streamstat to ensure the order is correctly reflecting what is the "First" login which denotes a NEW user.  Thanks for your help.  &lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 04:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-timechart-search-to-show-distinct-users-per-day/m-p/150642#M42216</guid>
      <dc:creator>ahsanshah</dc:creator>
      <dc:date>2015-06-15T04:47:38Z</dc:date>
    </item>
  </channel>
</rss>

