# Logins count by connection for a date range?

**URL:** <https://community.auth0.com/t/logins-count-by-connection-for-a-date-range/45446>\
**Category:** Get Help\
**Created:** [June 29, 2020, 8:40am UTC](https://community.auth0.com/t/logins-count-by-connection-for-a-date-range/45446 "2020-06-29T08:40:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johannes.lind](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/johannes.lind/32/12921_2.png) [@johannes.lind](https://community.auth0.com/u/johannes.lind)\
**Post date:** [June 29, 2020, 8:40am UTC](https://community.auth0.com/t/logins-count-by-connection-for-a-date-range/45446/1 "2020-06-29T08:40:51Z")

</div>

I would like to know how many logins we have for a specific connection for our site, and havent found anything suitable. It doesnt matter if I get it from the Logs dashboard or by the API. I just want the number, like the counter in the dashboard, but for a specific connection and for example for last 7 days or last month or a custom time range.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 30, 2020, 7:12pm UTC](https://community.auth0.com/t/logins-count-by-connection-for-a-date-range/45446/3 "2020-06-30T19:12:33Z")

</div>

Hi @johannes.lind,

This can be done via [logs](https://auth0.com/docs/logs). There isn’t a built in GUI to set this type of analysis up, so you will need to do some development to achieve your goal.

[What type of subscription type you have will determine how long your logs are stored by Auth0.](https://auth0.com/docs/logs/references/log-data-retention) Most customers will export logs via one of our extensions or [streams](https://auth0.com/docs/logs/streams) and use a third party for analysis.

[If you want to do a quick check via the management API logs endpoint](https://auth0.com/docs/api/management/v2#!/Logs/get_logs), you can use the following params to search for successful logins from a specific connection:

`type:"s" AND connection:"{YOUR_CONNECTION_NAME}"`

Hope this helps,  
Dan

---

<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:** [July 15, 2020, 7:12pm UTC](https://community.auth0.com/t/logins-count-by-connection-for-a-date-range/45446/4 "2020-07-15T19:12:40Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
