Audit Logs
Get audit logs by invoking the following endpoint:
GET https://YourAccount.lacework.net/api/v2/AuditLogs
Optionally specify the startTime and endTime time range filters using the following formats:
-
yyyy-MM-dd for example, 2020-12-18
-
yyyy-MM-ddTHH for example, 2020-12-18T08
-
yyyy-MM-ddTHH:mm:ssZ for example, 2020-12-18T08:00:00Z
-
yyyy-MM-ddTHH:mm:ss.SSSZ for example, 2020-12-18T08:00:00.000Z
To use the current time as the end time, exclude the endTime parameter.
Here is an example invocation:
GET https://YourAccount.lacework.net/api/v2/AuditLogs?startTime=2020-12-11T08:00:00Z&endTime=2020-12-18T08:00:00Z
Query parameters
Returns only recorded actions that occurred after this timestamp.
Returns only recorded actions that occurred before this timestamp. If empty or missing, the current time is used.
Headers
Bearer Access Token. For example, "Bearer {YourAPIToken}"
application/json
Use this attribute to specify if the access token has organization admin permissions. If the access token has only account permissions, use the Account-Name attribute to specify which account to access.
Use this attribute to specify which sub-account to access.
Response
No Error (List of Audit Logs)