# Diagnose unexpected Active Users

**URL:** <https://community.auth0.com/t/diagnose-unexpected-active-users/97345>\
**Category:** Get Help\
**Tags:** logs, management-api\
**Created:** [January 2, 2023, 11:10pm UTC](https://community.auth0.com/t/diagnose-unexpected-active-users/97345 "2023-01-02T23:10:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![travis.dixon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/travis.dixon/32/42246_2.png) [@travis.dixon](https://community.auth0.com/u/travis.dixon)\
**Post date:** [January 2, 2023, 11:10pm UTC](https://community.auth0.com/t/diagnose-unexpected-active-users/97345/1 "2023-01-02T23:10:24Z")

</div>

[The discrepancy between the "External Active User" counts and the number on the Quota Reports](https://community.auth0.com/t/the-discrepancy-between-the-external-active-user-counts-and-the-number-on-the-quota-reports/91172) tells me that I need to make some query on the logs API to see a list of the active users contributing to my quota usage.

[Auth0 Management API v2](https://auth0.com/docs/api/management/v2?_ga=2.246162692.1847387816.1618225160-1595415333.1607347674#!/Logs/get_logs) I believe is the place I should be looking, however it’s not immediately obvious to me

1 - how to give it a date range  
2 - which log event codes beyond the two mentioned in the above post will contribute to quota usage.

I’m going to have a crack at it using trial and error, but either a pre-baked query or even better something to click on the management interface would make my life a lot easier and probably save me from getting incorrect data and wasting time raising support tickets on bad data

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [January 3, 2023, 8:10pm UTC](https://community.auth0.com/t/diagnose-unexpected-active-users/97345/3 "2023-01-03T20:10:40Z")

</div>

Hi @travis.dixon ,

Welcome to the Auth0 Community!

`1 - how to give it a date range?`  
You can use such as `q: date:[2018-12-18 TO *]` to search by date.

`2 - which log event codes beyond the two mentioned in the above post will contribute to quota usage?`

MAU is only counted for successful authentication attempts. And only `sertft`  
and `sepftIt` are considered successful login authentication.

You may use `q: (type:"sertft" OR type:"sepft") AND date:[2018-12-18 TO *]` to find the details.

Ref:

[https://www.lucenetutorial.com/lucene-query-syntax.html](https://www.lucenetutorial.com/lucene-query-syntax.html)

> **[Log Search Query Syntax](https://auth0.com/docs/deploy-monitor/logs/log-search-query-syntax#ranges)**
>
> Describes search query syntax using a subset of the Lucene query syntax to refine Auth0 log searches.

Hope this helps!

---

<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:** [January 17, 2023, 8:11pm UTC](https://community.auth0.com/t/diagnose-unexpected-active-users/97345/4 "2023-01-17T20:11:36Z")

</div>

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