# Uniue login counts per user

**URL:** <https://community.auth0.com/t/uniue-login-counts-per-user/6343>\
**Category:** Get Help\
**Tags:** user-counts\
**Created:** [April 24, 2017, 11:05pm UTC](https://community.auth0.com/t/uniue-login-counts-per-user/6343 "2017-04-24T23:05:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bberg](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bberg](https://community.auth0.com/u/bberg)\
**Post date:** [April 24, 2017, 11:05pm UTC](https://community.auth0.com/t/uniue-login-counts-per-user/6343/1 "2017-04-24T23:05:16Z")

</div>

Hi,

I am trying to find the command to find: A) unique login counts per user and B) total logins over a given time frame (like in the dashboard view).

I have tried: last\_login: 2017-04-17 TO 2017-04-24], but this aggregates the users and not the total login counts.

Thanks!  
-Ben

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [April 25, 2017, 9:33am UTC](https://community.auth0.com/t/uniue-login-counts-per-user/6343/2 "2017-04-25T09:33:41Z")

</div>

You can perform the following query to get specific user events:

```
user_id:"auth0|123.........."

```

You can try performing the following to get the specific users who have logged in between the period:

```
user_id:"auth0|123........." AND last_login: 2017-04-17 TO 2017-04-24]

```

Search for a range of users in a given timeframe:

```
user_id:("FIRST_ID" OR "SECOND_ID" OR "THIRD_ID...)

```

> **[User Search v2](https://auth0.com/docs/manage-users/user-search/v2)**
>
> This page lists several examples of user search queries using query string syntax.

---

<div class="post-metadata">

**Author:** ![bberg](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bberg](https://community.auth0.com/u/bberg)\
**Post date:** [April 26, 2017, 2:08am UTC](https://community.auth0.com/t/uniue-login-counts-per-user/6343/3 "2017-04-26T02:08:29Z")

</div>

Thanks.

However I would like to do this for a range of users in the given timeframe, not user by user.

-Ben

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [April 26, 2017, 1:09pm UTC](https://community.auth0.com/t/uniue-login-counts-per-user/6343/4 "2017-04-26T13:09:13Z")

</div>

See my updated answer above

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/uniue-login-counts-per-user/6343/5 "2018-03-02T05:53:28Z")

</div>


