Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Get Log File Content

GET/api/v2/audit/logFiles/{logFileId}/content
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:audit-read.

Path parameters

logFileId
string

The ID of an audit log file

Query parameters

preview
boolean
optional

Enables the use of preview functionality.

Response body

body
string

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/audit/logFiles/S2VlcEV4cGxvcmluZw==/content?preview=true"

Error responses

Error Name
GetLogFileContentPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not content the LogFile.
ParameterslogFileId
GetLogFileContentPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not content the LogFile.
ParameterslogFileId