<?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: Count users' successful logins over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-users-successful-logins-over-time/m-p/658368#M227425</link>
    <description>&lt;P&gt;When you say&amp;nbsp;&lt;STRONG&gt;per day&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;per week&lt;/STRONG&gt; do you mean you want unique user count in a week as long as a person logged in once in that week, or do you want to show a daily unique user count AND a weekly unique user count?&lt;/P&gt;&lt;P&gt;Building on&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;comments, to get count of users per day then it's&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;some other selectors&amp;gt; event=login status=success earliest=-1mon
| timechart span=1w@w dc(user) as users&lt;/LI-CODE&gt;&lt;P&gt;will give you a weekly unique count from Sun-&amp;gt;Sat&lt;/P&gt;&lt;P&gt;If you want to get unique by day as well as by week, then do the daily dc() count and save the values and then after bin by week and add in the dc() count for the week&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1d dc(user) as users values(user) as tmp_users
| eval t=_time
| bin t span=1w@w 
| eventstats dc(tmp_users) as weekly_users by t
| fields - tmp_users t&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 02:08:36 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-09-22T02:08:36Z</dc:date>
    <item>
      <title>Count users' successful logins over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-users-successful-logins-over-time/m-p/658347#M227411</link>
      <description>&lt;P&gt;I would like to get the number of people connected (one successful login session per user per day will suffice) to our network over a month period using earliest and now() attributes. The figures should be presented per week like a chart&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-users-successful-logins-over-time/m-p/658347#M227411</guid>
      <dc:creator>DanAlexander</dc:creator>
      <dc:date>2023-09-21T20:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count users' successful logins over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-users-successful-logins-over-time/m-p/658359#M227419</link>
      <description>&lt;P&gt;You have to tell volunteers how your data looks like. &amp;nbsp;Forget Splunk. &amp;nbsp;How do you tell there is a new login, how do you tell a new login is successful from your data?&lt;/P&gt;&lt;P&gt;Suppose your data have three fields, user, event, and status, where event "login" signifies a new login, and status "success" signifies success. &amp;nbsp;A generic way to do this would be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;some other selectors&amp;gt; event=login status=success earliest=-1mon
| timechart span=1d count by user&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 23:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-users-successful-logins-over-time/m-p/658359#M227419</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-09-21T23:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count users' successful logins over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-users-successful-logins-over-time/m-p/658368#M227425</link>
      <description>&lt;P&gt;When you say&amp;nbsp;&lt;STRONG&gt;per day&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;per week&lt;/STRONG&gt; do you mean you want unique user count in a week as long as a person logged in once in that week, or do you want to show a daily unique user count AND a weekly unique user count?&lt;/P&gt;&lt;P&gt;Building on&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;comments, to get count of users per day then it's&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;some other selectors&amp;gt; event=login status=success earliest=-1mon
| timechart span=1w@w dc(user) as users&lt;/LI-CODE&gt;&lt;P&gt;will give you a weekly unique count from Sun-&amp;gt;Sat&lt;/P&gt;&lt;P&gt;If you want to get unique by day as well as by week, then do the daily dc() count and save the values and then after bin by week and add in the dc() count for the week&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1d dc(user) as users values(user) as tmp_users
| eval t=_time
| bin t span=1w@w 
| eventstats dc(tmp_users) as weekly_users by t
| fields - tmp_users t&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 02:08:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-users-successful-logins-over-time/m-p/658368#M227425</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-09-22T02:08:36Z</dc:date>
    </item>
  </channel>
</rss>

