/api/v2/logs/{id}
: Retrieves the single log entry associated with the provided log ID./api/v2/users/{user_id}/logs
: Retrieves logs for a specific user ID.log_id
. It
is commonly used to send your Logs to an external system, such as Splunk, Datadog,
Application Insights, Mixpanel, and more.
To search by checkpoint, use the following parameters:
Parameter | Description |
---|---|
from | Log event ID to start retrieving logs. You can limit the amount of logs using the take parameter. |
take | The total amount of entries to retrieve when using the from parameter. |
from
and take
will be ignored. The logs are ordered by the log_id
.
log_id
, rather than log generation time, to prevent skipping past records due to Auth0 system delays1,000
record limit when retrieving logs by search criterianext
relation URL
inside of the Link
header. This simplifies the work for integrating with the
API, and allows Auth0 to make optimizations without impacting the customer
experience.
us
is acme
. To start retrieving records by
checkpoint:
log_id
from any log in your system.
Example: 90020211201185132572079310688835925971249535794074878050
.
https://TENANT_NAME.LOCALITY.auth0.com/api/v2/logs?from=LOG_ID&take=100
to request the next 100
logs newer than the given LOG_ID
.
0
to 100
logs newer than the given LOG_ID
Link
header with a next
relationnext
relation will match the same URL you used in the most recent request
Parameter | Description |
---|---|
q | Search criteria using Query String Syntax. |
page | The zero-based page number. |
per_page | The number of entries per page. |
sort | The field to use for sorting. Use field:order , where order is 1 for ascending and -1 for descending. For example date:-1 . |
fields | A comma-separated field list to include or exclude (depending on include_fields ) from the result. Leave empty to retrieve all fields. |
include_fields | true if the fields specified are to be included in the result, false otherwise. Defaults to true . |
414 Request-URI Too Large
this means that your query string is larger than the supported length. In this case, refine your search.
user
connection
application
type
ip
application:"test"
will search for all log events specific to the application named test
, but application:test
will search log events for applications with “test” in their name.