Auth0 Home Blog Docs

Log Count for Log retrieval using management API v2

logs
log-retention
managment-api-v2

#1

I am working on pulling logs to avoid losing them since we only have 10 days of retention.
I need a way to retrieve a total log count available using the management v2 API?


#2

I may be missing something but if the objective is to perform a sort of log shipping I would expect the usage of the from checkpoint approach and no need for a total log count. Nonetheless, based on the documentation in the API explorer for the logs endpoint you can perform a search by criteria (with a criteria that matches everything) and then use the include_totals option so that the response contain information about total log count.


#3

Thank you, I don’t know how I completely missed that in the documentation.


#4