Logs
logs
Methods
Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified).
Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").
For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.
To set custom search criteria, use the following parameters:
- q: Search Criteria using Query String Syntax
- page: Page index of the results to return. First page is 0.
- per_page: Number of results per page.
- sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
- fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
- include_fields: Whether specified fields are to be included (true) or excluded (false).
- include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
For more information on the list of fields that can be used in fields and sort, see Searchable Fields.
Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.
To search from a checkpoint log ID, use the following parameters:
- from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the
takeparameter. If you usefromat the same time asq,fromtakes precedence andqis ignored. - take: Number of entries to retrieve when using the
fromparameter.
Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.
Example: Authorization: Bearer My Bearer Token
Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.
Log Event Id from which to start selection from.
Whether specified fields are to be included (true) or excluded (false)
Return results as an array when false (default). Return results inside an object that also contains a total result count when true.
Page index of the results to return. First page is 0.
Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100
Query in Lucene query string syntax.
Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1
Number of entries to retrieve when using the from parameter. Default 50, max 100
Retrieve an individual log event.