Export audit logs in ascending order
This example requests audit logs without defining the starting timestamp, sort order, or limit.next_starting_from with a timestamp. To export the next batch of entries, send a second request and set starting_from to the value of next_starting_from.
Export audit logs in descending order
This example requests the 300 most recent audit logs, starting from the current timestamp.sort_order and limit and set starting_from to the value of next_starting_from. When there are no more results to fetch (because you have reached when your CockroachDB Cloud organization was created), no next_starting_from field is returned.
Events adjacent to a specific timestamp
This example shows how to retrieve the 200 events on each side of a given timestamp by invoking the API twice, with the same timestamp and a different sort order for each request. The sort order determines whether the specified timestamp is at the beginning or end of the list. These examples use the default value forlimit.
First, retrieve roughly 200 entries for the specified timestamp and later.
id.
What’s next?
- Learn more about the

