provider Audit GET /api/v2/audit/events
@utdk/datadog /api/v2/audit/events
Get a list of Audit Logs events
List endpoint returns events that match a Audit Logs search query. [Results are paginated][1]. Use this endpoint to see your latest Audit Logs events. [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination
filter[query] query
Search query following Audit Logs syntax.
string
filter[from] query
Minimum timestamp for requested events.
string
filter[to] query
Maximum timestamp for requested events.
string
sort query
Order of events in results.
enum: timestamp, -timestamp
page[cursor] query
List following results with a cursor provided in the previous query.
string
page[limit] query
Maximum number of events in the response.
integer

Try it

Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

listauditlogs
GET/api/v2/audit/events
List endpoint returns events that match a Audit Logs search query. [Results are paginated][1]. Use this endpoint to see your latest Audit Logs events. [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination

Search query following Audit Logs syntax.

Minimum timestamp for requested events.

Maximum timestamp for requested events.

Order of events in results.

List following results with a cursor provided in the previous query.

Maximum number of events in the response.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import datadog from '@utdk/datadog';

await datadog.listauditlogs({
  "page[limit]": 10
})