AuditLogs

The audit log provides audit trail information for user activity, changes to business objects and other important information. For more information, see Audit log.

Get audit logs

get

Get audit logs based on query params filter

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
startstring · date-timeRequired

Start date of time range to fetch data in ISO 8601 timestamp format.

Example: 2023-06-06T12:09:18.211Z
endstring · date-timeRequired

End date of time range to fetch data in ISO 8601 timestamp format.

Example: 2023-06-07T12:09:18.211Z
offsetinteger · int32Optional

The offset of the first item returned in the collection.

Example: 100
numberOfSamplesinteger · max: 1000Optional

The number of samples to take in the specified time range.

Default: 20Example: 20
sortOrderstring · enumOptional

Sort results in descending or ascending order.

Default: ascPossible values:
sortBystring · enumOptional

Sort results by a parameters.

Possible values:
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["cluster_name==my-cluster_name","entity_type==cluster,entity_name==test"]
Responses
200

Executed successfully

application/json
totalintegerOptionalExample: 2000
nextintegerOptionalExample: 100
get
/api/v1/audit/log

Download audit logs

get

Download audit logs as a file, based on query params filter

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
file_typestring · enumOptionalDefault: CSVPossible values:
startstring · date-timeRequired

Start date of time range to fetch data in ISO 8601 timestamp format.

Example: 2023-06-06T12:09:18.211Z
endstring · date-timeRequired

End date of time range to fetch data in ISO 8601 timestamp format.

Example: 2023-06-07T12:09:18.211Z
numberOfSamplesinteger · max: 1000Optional

The number of samples to take in the specified time range.

Default: 20Example: 20
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["cluster_name==my-cluster_name","entity_type==cluster,entity_name==test"]
Responses
200

File downloaded

application/octet-stream
get
/api/v1/audit/log/file

Last updated