docs/classes/management.SDK.LogsClient.html
new LogsClient(options: BaseClientOptions): LogsClient
list(
request?: ListLogsRequestParameters,
requestOptions?: LogsClient.RequestOptions,
): Promise<Page<Log, ListLogOffsetPaginatedResponseContent>>
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.
:1 for ascending and :-1 for descending. e.g. date:-1For 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.
take parameter. If you use from at the same time as q, from takes precedence and q is ignored.from parameter.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.
OptionalrequestOptions: LogsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.logs.list({ page: 1, per_page: 1, sort: "sort", fields: "fields", include_fields: true, include_totals: true, search: "search" })Copy
get(
id: string,
requestOptions?: LogsClient.RequestOptions,
): HttpResponsePromise<GetLogResponseContent>
Retrieve an individual log event.
log_id of the log to retrieve.
OptionalrequestOptions: LogsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.logs.get("id")Copy
Protected Readonly_options_options: NormalizedClientOptionsWithAuth<BaseClientOptions>
Member Visibility
ThemeOSLightDark
Constructors constructor Methods listget Properties _options