Audit Log
MaxCompute records all user operations and sends behavioral logs to ActionTrail in real time. Using ActionTrail’s single-account trail feature, you can deliver logs to Simple Log Service (SLS) or a specified Object Storage Service (OSS) bucket for real-time auditing and issue root-cause analysis.
Flowchart
ActionTrail captures MaxCompute user behavior logs and delivers them to Simple Log Service or Object Storage Service (OSS) as follows:
Use cases
MaxCompute automatically delivers operation logs to ActionTrail in real time. You can perform the following analyses:
Query historical events and details
The Query Events page of the ActionTrail console shows historical events from various services, including MaxCompute. For more information, see Query events in the ActionTrail console.
Analyze real-time behavior events
Use the Trail feature in ActionTrail to deliver events to OSS for archiving and analysis. Alternatively, you can deliver events to a Simple Log Service project to analyze these events in real time. For example, you can handle alerts for sensitive data access. For more information, see Create a single-account trail.
Log scope
ActionTrail audits operations on jobs (instances), tables, users, roles, and privileges. For the full list of audited events, see Audit events for MaxCompute.
Event type (EventType) | Event name (EventName) | Event description |
Submits a job. | ||
An event generated when a job ends or a user explicitly terminates an instance. | ||
Retrieves information about a MaxCompute job. | ||
Lists MaxCompute jobs. | ||
Creates a UDF. | ||
Updates a UDF. | ||
Retrieves information about a UDF. | ||
Deletes a UDF. | ||
Lists UDFs. | ||
Creates a resource. | ||
Updates a resource file. | ||
Retrieves information about a resource file. | ||
Downloads a resource file. | ||
Deletes a resource file. | ||
Lists resource files. | ||
A Tunnel download event. | ||
A Tunnel upload event. | ||
Downloads the execution result of an instance. For example, a SELECT query triggers an InstanceTunnel event. | ||
Creates a role. | ||
Deletes a role. | ||
Adds a user. | ||
Removes a user. | ||
Creates a table. | ||
Modifies table schema. For example, runs an ALTER TABLE statement. | ||
Drops a table. | ||
Views table schema (DESC table). | ||
Reads table data. | ||
Changes table data. For example, INSERT INTO, INSERT OVERWRITE, TRUNCATE, and Tunnel import operations trigger this event. | ||
Lists tables. | ||
Describes a table partition. | ||
Lists table partitions. | ||
Grants a role. | ||
Revokes a role grant. | ||
Grants an ACL permission. | ||
Revokes an ACL permission. | ||
Grants a label-based permission. | ||
Revokes a label-based permission. | ||
Uploads a MaxCompute role policy. | ||
Sets a project-level access policy. | ||
Sets column-level Label permissions for a table. | ||
Sets Label permissions for a user. | ||
Creates a MaxCompute project. | ||
Retrieves information about a project. | ||
Updates a MaxCompute project. | ||
Drops a MaxCompute project. | ||
Creates a schema. | ||
Retrieves information about a schema. | ||
Deletes a schema. | ||
Lists schemas. | ||
Connection | ||
DataPolicy | ||
CreateDataScan / GetDataScan / DeleteDataScan / PatchDataScan / ListDataScans / TriggerDataScan | DataScan | |
ScanJob | ||
Role | ||
Namespace | ||
CreateTaxonomy / GetTaxonomy / DeleteTaxonomy / UpdateTaxonomy / PatchTaxonomy / ListTaxonomies | Taxonomy | |
PolicyTag | ||
Project | ||
Schema | ||
Table | ||
Model |
Log fields
Each event type records specific operation details in the following common log fields.
Each event includes the following common fields. Some fields may be empty. For more information, see Management event structure.
Field name | Description | Example |
eventId | A GUID that ActionTrail assigns to each event. | 918510a4-7b63-47d2-b053-8f9db82c431a |
acsRegion | An Alibaba Cloud region. | cn-hangzhou |
eventName | The event name. | InsertJob |
eventTime | The time when the event occurred, in UTC format. | 2020-01-09T12:12:14Z |
eventType | The event type. | JobEvent |
errorCode | An error code reported if an error occurs. | ODPS-10000 |
errorMessage | An error description. | ODPS-0130161:[1,18] Parse exception - invalid token 'bigstring' |
requestId | An API request ID. | 6df41e8c-cfd0-4beb-8dd0-13b8490fdf5b |
serviceName | The name of the cloud service related to the event. | MaxCompute |
sourceIpAddress | The source IP address of the API request. | 47.100.XX.XX |
userAgent | The client agent identifier used to send the API request. |
|
userIdentity | Identity information about the requester. Includes accountId, principalId, type, and userName. | |
referencedResources | Resources involved in the event. For example, JobEvent includes InstanceId, and TableEvent includes the table name. The content of this field varies by event type. | |
additionalEventData | Additional event-specific information. For example, job status or query statements. The content of this field varies by event type. | |
JobEvent
InsertJob
Field name
Description
Example
referencedResources
The job ID for an InsertJob event.
"referencedResources": { // List of resources affected by the event "Instance": ["2020102713575683gc2j****" ] }additionalEventData
Additional information for an InsertJob event. Includes the following:
ProjectName: Name of the project where the job runs.
TaskName: Name of the task that contains the job.
InstanceId: Job ID.
TaskType: Job type, such as SQL, LOT, or CUPID.
OperationText: Content of the SQL query.
"additionalEventData": { "ProjectName": "meta", "TaskName": "console_query_task_1603807075919", "InstanceId": "2020102713575683gc2je4pr2", "TaskType": "SQL", "OperationText": "create table a(a bigstring);" }JobChange
Field name
Description
Example
referencedResources
The job ID for a JobChange event.
"referencedResources": { // List of resources affected by the event "Instance": ["2020102713575683gc2j****" ] }additionalEventData
Additional information for a JobChange event. Includes the following:
Status: Final job status.
ProjectName: Name of the project where the job runs.
TaskName: Name of the task that contains the job.
InstanceId: Job ID.
TaskType: Job type, such as SQL, LOT, or CUPID.
OperationText: Content of the SQL query.
"additionalEventData": { "Status": "Failed", "ProjectName": "meta", "TaskName": "console_query_task_1603807075919", "InstanceId": "2020102713575683gc2j****", "TaskType": "SQL", "OperationText": "create table a(a bigstring);" }DescribeJob
Field name
Description
Example
referencedResources
Job ID.
"referencedResources": { "ACS::MaxCompute::Instance": [ "20240819060249657grvwgfwbx8g" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Name of the project where the job runs.
TaskName: Name of the task that contains the job.
InstanceId: Job ID.
TaskType: Job type, such as SQL, LOT, or CUPID.
OperationText: Content of the SQL query.
"additionalEventData": { "ProjectName": "meta", "InstanceId": "20240819060249657grvwgfwbx8g" }ListJobs
Field name
Description
Example
referencedResources
"referencedResources": { "ACS::MaxCompute::Project": [ "meta_dev" ] }additionalEventData
Additional information:
ProjectName: Name of the project where the job runs.
"additionalEventData": { "ProjectName": "meta_dev" }
FunctionEvent
CreateFunction
Creates a UDF.
Field name
Description
Example
referencedResources
Function name.
"referencedResources": { "ACS::MaxCompute::Function": [ "xxxx" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }UpdateFunction
Updates a UDF.
Field name
Description
Example
referencedResources
Function name.
"referencedResources": { "ACS::MaxCompute::Function": [ "xxxx" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }DescribeFunction
Retrieves information about a UDF.
Field name
Description
Example
referencedResources
Function name.
"referencedResources": { "ACS::MaxCompute::Function": [ "xxxx" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }DeleteFunction
Deletes a UDF.
Field name
Description
Example
referencedResources
Function name.
"referencedResources": { "ACS::MaxCompute::Function": [ "xxxx" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }ListFunctions
Lists UDFs.
Field name
Description
Example
referencedResources
"referencedResources": { "ACS::MaxCompute::Project": [ "meta_dev" ] }additionalEventData
Additional information:
ProjectName: Name of the project that owns the function.
"additionalEventData": { "ProjectName": "meta_dev" }
ResourceEvent
CreateResource
Creates a resource.
Field name
Description
Example
referencedResources
Resource name.
"referencedResources": { "ACS::MaxCompute::Resource": [ "lotplan_mr_172404242159958261476_0" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }UpdateResource
Updates a resource file.
Field name
Description
Example
referencedResources
Resource name.
"referencedResources": { "ACS::MaxCompute::Resource": [ "lotplan_mr_172404242159958261476_0" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }DescribeResource
Retrieves information about a resource file.
Field name
Description
Example
referencedResources
Resource name.
"referencedResources": { "ACS::MaxCompute::Resource": [ "lotplan_mr_172404242159958261476_0" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }DownloadResource
Downloads a resource file.
Field name
Description
Example
referencedResources
Resource name.
"referencedResources": { "ACS::MaxCompute::Resource": [ "lotplan_mr_172404242159958261476_0" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }DeleteResource
Deletes a resource file.
Field name
Description
Example
referencedResources
Resource name.
"referencedResources": { "ACS::MaxCompute::Resource": [ "lotplan_mr_172404242159958261476_0" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }ListResources
Lists resource files.
Field name
Description
Example
referencedResources
"referencedResources": { "ACS::MaxCompute::Project": [ "meta_dev" ] }additionalEventData
Additional information:
ProjectName: Name of the project that owns the resource.
"additionalEventData": { "ProjectName": "meta_dev" }
TunnelEvent
DownloadTable
Field name
Description
Example
referencedResources
The table name for a DownloadTable event.
"referencedResources": { // List of resources affected by the event "Table": [ "source_xml_instid_flt_2" ] }additionalEventData
Additional information for a DownloadTable event. Includes the following:
TableName: Table name.
Partition: Partition information.
CurrentProject: Name of the project where the download starts.
ProjectName: Name of the project that owns the downloaded table.
SesssionId: Tunnel session ID.
"additionalEventData": { "TableName": "source_xml_instid_flt_2", "Partition": "projectname=inst_200233,ds=20201027", "CurrentProject": "project1", "ProjectName": "project2", "SesssionId": "20201027200931a3baca0b037518a7" }UploadTable
Field name
Description
Example
referencedResources
The table name for an UploadTable event.
"referencedResources": { // List of resources affected by the event "Table": [ "source_xml_instid_flt_2" ] }additionalEventData
Additional information for an UploadTable event. Includes the following:
TableName: Table name.
Partition: Partition information.
ProjectName: Name of the project that owns the uploaded table.
SessionId: Tunnel session ID.
"additionalEventData": { "TableName": "m_rt_privilege_event", "Partition": "ds=20201027,hh=22,mm=00", "ProjectName": "meta2", "SesssionId": "202010272209332231f60b08182dfb" }InstanceTunnel
Field name
Description
Example
referencedResources
The job ID for an InstanceTunnel event.
"referencedResources": { // List of resources affected by the event "Instance": [ "20201027080131990gf23****"] }additionalEventData
Additional information for an InstanceTunnel event. Includes the following:
CurrentProject: Name of the project where the instance download starts.
ProjectName: Name of the project that owns the downloaded instance.
InstanceId: Job ID.
Session ID: The tunnel session ID.
"additionalEventData": { "CurrentProject": "meta", "ProjectName": "meta", "InstanceId": "20201027080131990gf23****", "SesssionId": "2020102716014017c4ca0b036850f6" }
RoleEvent
The resource type is Role. The resource name maps to the principal field.
CreateRole
Field name
Description
Example
referencedResources
The role name for a CreateRole event.
"referencedResources": { // List of resources affected by the event "Role": [ "test1" ] }additionalEventData
Additional information for a CreateRole event. Includes the following:
RoleName: Name of the created role.
CurrentProject: Name of the project where the role creation starts.
ProjectName: Name of the project that owns the role.
OperationText: Statement executed.
"additionalEventData": { "RoleName": "test1", "CurrentProject": "meta_dev", "ProjectName": "dev1", "OperationText": "create role test1;" }DropRole
Field name
Description
Example
referencedResources
Name of the deleted role.
"referencedResources": { // List of resources affected by the event "Role": [ "test1" ] }additionalEventData
Additional information for a DropRole event. Includes the following:
RoleName: Name of the dropped role.
CurrentProject: Name of the project where the role deletion starts.
ProjectName: Name of the project that owns the role.
OperationText: Statement executed.
"additionalEventData": { "RoleName": "test1", "CurrentProject": "meta_dev", "ProjectName": "dev1", "OperationText": "drop role test1;" }
UserEvent
AddUser
Field name
Description
Example
referencedResources
The user name for an AddUser event.
"referencedResources": { // List of resources affected by the event "User": [ "ram$xxxx@aliyun.com:sub" ] }additionalEventData
Additional information for an AddUser event. Includes the following:
UserName: Name of the added user.
ProjectName: Name of the project where the user is added.
OperationText: Statement executed.
"additionalEventData": { "UserName": "ram$xxxx@aliyun.com:sub", "ProjectName": "project1", "OperationText": "add user RAM$xxxx@aliyun.com:sub;" }RemoveUser
Field name
Description
Example
referencedResources
The user name for a RemoveUser event.
"referencedResources": { // List of resources affected by the event "User": [ "ram$xxxx@aliyun.com:sub" ] }additionalEventData
Additional information for a RemoveUser event. Includes the following:
UserName: Name of the removed user.
ProjectName: Name of the project that owns the removed user.
OperationText: Statement executed.
"additionalEventData": { "UserName": "ram$xxxx@aliyun.com:sub", "ProjectName": "project1", "OperationText": "remove user RAM$xxxx@aliyun.com:sub;" }
TableEvent
The resource type maps to the object_type field. The resource name maps to the object_name field.
CreateTable
Field name
Description
Example
referencedResources
The table name for a CreateTable event.
"referencedResources": { // List of resources affected by the event "Table": [ "ttt" ] }additionalEventData
Additional information for a CreateTable event. Includes the following:
TableName: Name of the created table.
ProjectName: Name of the project that owns the table.
CorrelationId: Used with Source. If Source is INSTANCE, CorrelationId is the job ID. If Source is TUNNEL, CorrelationId is the Tunnel request ID.
Source: INSTANCE or TUNNEL.
"additionalEventData": { "TableName": "ttt", "ProjectName": "meta_dev", "CorrelationId": "20201027083345196gsjgpv21", "Source": "INSTANCE", "OperationText": "CREATE_TABLE" }DropTable
Field name
Description
Example
referencedResources
The table name for a DropTable event.
"referencedResources": { // List of resources affected by the event "Table": [ "ttt" ] }additionalEventData
Additional information for a DropTable event. Includes the following:
TableName: Name of the dropped table.
ProjectName: Name of the project that owns the table.
CorrelationId: Used with Source. If Source is INSTANCE, CorrelationId is the job ID. If Source is TUNNEL, CorrelationId is the Tunnel request ID.
Source: INSTANCE or TUNNEL.
OperationText: DROP_TABLE means the user requested deletion. RECYCLE_TABLE means the system recycled the table due to its lifecycle setting.
"additionalEventData": { "TableName": "hot_user_hs_top30", "ProjectName": "prj1", "CorrelationId": "20201023024002372giqvmv21", "Source": "INSTANCE", "OperationText": "DROP_TABLE" }ChangeTable
Modifies table metadata.
Field name
Description
Example
referencedResources
The table name for a ChangeTable event.
"referencedResources": { // List of resources affected by the event "Table": [ "ttt" ] }additionalEventData
Additional information for a ChangeTable event. Includes the following:
TableName: Name of the modified table.
ProjectName: Name of the project that owns the table.
CorrelationId: Used with Source. If Source is INSTANCE, CorrelationId is the job ID. If Source is TUNNEL, CorrelationId is the Tunnel request ID.
Source: INSTANCE or TUNNEL.
OperationText
ALTER_TABLE_RENAME
ALTER_TABLE_TOUCH
ALTER_TABLE_TOUCH_PARTITION
ALTER_TABLE_CLUSTERED
ALTER_TABLE_PARTITION_RENAME
ALTER_TABLE_ADD_COLUMNS
ALTER_TABLE_BATCH_ADD_PARTITIONS
ALTER_TABLE_BATCH_DROP_PARTITIONS
ALTER_TABLE_CHANGE_LIFECYCLE
ALTER_TABLE_CHANGE_OWNER
ALTER_TABLE_CHANGE_COMMENT
ALTER_TABLE_DROP_PARTITION
ALTER_PARTITION
ALTER_COLUMN
ADD_PARTITION
DROP_PARTITIONS
DROP_EXTERNAL_PARTITIONS
The values listed above describe specific actions.
"additionalEventData": { "TableName": "ttt", "ProjectName": "proj1", "CorrelationId": "20201028161651750g05e0tsa", "Source": "INSTANCE", "OperationText": "ADD_PARTITION" }DescribeTable
Field name
Description
Example
referencedResources
The table name for a DescribeTable event.
"referencedResources": { // List of resources affected by the event "Table": [ "ttt" ] }additionalEventData
Additional information for a DescribeTable event. Includes the following:
TableName: Name of the table viewed.
ProjectName: Name of the project that owns the table.
"additionalEventData": { "TableName": "ttt", "ProjectName": "prj1" }ChangeTableData
Field name
Description
Example
referencedResources
The table name for a ChangeTableData event.
"referencedResources": { // List of resources affected by the event "Table": [ "ttt" ] }additionalEventData
Additional information for a ChangeTableData event. Includes the following:
TableName: Name of the modified table.
ProjectName: Name of the project that owns the table.
CorrelationId: Used with Source. If Source is INSTANCE, CorrelationId is the job ID. If Source is TUNNEL, CorrelationId is the Tunnel request ID.
Source: INSTANCE or TUNNEL.
OperationText: Describes a specific action, such as TRUNCATE_TABLE, INSERT_OVERWRITE_TABLE, INSERT_OVERWRITE_PARTITION, INSERT_PARTITION, INSERT_TABLE, or DATA_INGESTION.
"additionalEventData": { "TableName": "ttt", "ProjectName": "meta_dev", "CorrelationId": "20201027083345196gsjgpv21", "Source": "INSTANCE", "OperationText": "DATA_INGESTION" }ReadTableData
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information for a ReadTableData event. Includes the following:
TableName: Name of the table whose data is read.
ProjectName: Name of the project that owns the table.
CorrelationId: Used with Source. If Source is INSTANCE, CorrelationId is the job ID. If Source is TUNNEL, CorrelationId is the Tunnel request ID.
Source: INSTANCE or TUNNEL.
OperationText: READ_TABLE.
"additionalEventData": { "TableName": "ttt", "ProjectName": "meta_dev", "CorrelationId": "20201027083345196gsjgpv21", "Source": "INSTANCE", "OperationText": "READ_TABLE" }ListTables
Field name
Description
Example
referencedResources
"referencedResources": { "ACS::MaxCompute::Project": [ "meta_dev" ] }additionalEventData
Additional information:
ProjectName: Name of the project that owns the table.
"additionalEventData": { "ProjectName": "meta_dev" }DescribeTablePartition
Field name
Description
Example
referencedResources
"referencedResources": { "ACS::MaxCompute::Table": [ "xxx" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
TableName: Table name.
ProjectName: Name of the project that owns the table.
"additionalEventData": { "TableName": "xxx", "ProjectName": "meta" }ListTablePartitions
Field name
Description
Example
referencedResources
"referencedResources": { "ACS::MaxCompute::Table": [ "xxx" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
TableName: Table name.
ProjectName: Name of the project that owns the table.
"additionalEventData": { "TableName": "xxx", "ProjectName": "meta" }
PrivilegeEvent
GrantRole
Field
Description
Example
referencedResources
Name of the Alibaba Cloud account granted access.
"referencedResources": { // List of resources affected by the event "User": [ "aliyun$xxxx@aliyun.com" ] }additionalEventData
Additional information for a GrantRole event. Includes the following:
UserName: Name of the Alibaba Cloud account granted access.
ProjectName: Name of the project where the grant applies.
OperationText: Statement executed.
"additionalEventData": { "ObjectType": "PROJECT", "CurrentProject": "meta", "UserName": "aliyun$xxx@aliyun.com", "ProjectName": "meta", "OperationText": "grant test_role to ALIYUN$xxx@aliyun.com" }RevokeRole
Field name
Description
Example
referencedResources
Name of the Alibaba Cloud account whose access is revoked.
"referencedResources": { // List of resources affected by the event "User": [ "aliyun$xxxx@aliyun.com" ] }additionalEventData
Additional information for a RevokeRole event. Includes the following:
UserName: Name of the Alibaba Cloud account whose access is revoked.
ProjectName: Name of the project where the revocation applies.
OperationText: Statement executed.
"additionalEventData": { "ObjectType": "PROJECT", "CurrentProject": "meta", "UserName": "aliyun$xxx@aliyun.com", "ProjectName": "meta", "OperationText": "revoke test_role from ALIYUN$xxx@aliyun.com" }GrantACL
Field name
Description
Example
referencedResources
Name of the Alibaba Cloud account granted access.
"referencedResources": { // List of resources affected by the event "User": [ "aliyun$xxxx@aliyun.com" ] }additionalEventData
Additional information for a GrantACL event. Includes the following:
ObjectType: Type of authorization object, such as PROJECT, RESOURCE, TABLE, or FUNCTION.
CurrentProject: Name of the project where the grant starts.
UserName: Name of the Alibaba Cloud account granted access.
ProjectName: Name of the project where the grant applies.
OperationText: Statement executed.
ObjectName: Name of the authorization object.
"additionalEventData": { "ObjectType": "PROJECT", "CurrentProject": "meta", "UserName": "aliyun$xxx@aliyun.com", "ProjectName": "meta", "OperationText": "grant createtable on project meta to ALIYUN$xxx@aliyun.com;", "ObjectName": "meta" }RevokeACL
Field name
Description
Example
referencedResources
The Alibaba Cloud account name for a RevokeACL event.
"referencedResources": { // List of resources affected by the event "User": [ "aliyun$xxxx@aliyun.com" ] }additionalEventData
Additional information for a RevokeACL event. Includes the following:
ObjectType: Type of authorization object, such as PROJECT, RESOURCE, TABLE, or FUNCTION.
CurrentProject: Name of the project where the revocation starts.
UserName: Name of the Alibaba Cloud account whose access is revoked.
ProjectName: Name of the project where the revocation applies.
OperationText: Statement executed.
ObjectName: Name of the authorization object.
"additionalEventData": { "ObjectType": "PROJECT", "CurrentProject": "meta", "UserName": "aliyun$xxx@aliyun.com", "ProjectName": "project1", "OperationText": "revoke createtable on project project1 from ALIYUN$xxx@aliyun.com;", "ObjectName": "project1" }GrantLabel
Field name
Description
Example
referencedResources
Name of the Alibaba Cloud account granted access.
"referencedResources": { // List of resources affected by the event "User": [ "aliyun$xxxx@aliyun.com" ] }additionalEventData
Additional information for a GrantLabel event. Includes the following:
ObjectType: Type of authorization object, TABLE.
UserName: Name of the Alibaba Cloud account granted access.
ProjectName: Name of the project where the grant applies.
OperationText: Statement executed.
ObjectName: Name of the authorization object.
"additionalEventData": { "ObjectType": "TABLE", "UserName": "aliyun$xxx@aliyun.com", "ProjectName": "meta", "OperationText": "GRANT LABEL 4 ON TABLE t1 TO USER ALIYUN$xxx@aliyun.com;", "ObjectName": "t1" }RevokeLabel
Field name
Description
Example
referencedResources
Name of the Alibaba Cloud account whose access is revoked.
"referencedResources": { // List of resources affected by the event "User": [ "aliyun$xxxx@aliyun.com" ] }additionalEventData
Additional information for a RevokeLabel event. Includes the following:
ObjectType: Type of authorization object, such as PROJECT, RESOURCE, TABLE, or FUNCTION.
UserName: Name of the Alibaba Cloud account whose access is revoked.
ProjectName: Name of the project where the revocation applies.
OperationText: Statement executed.
ObjectName: Name of the authorization object.
"additionalEventData": { "ObjectType": "TABLE", "UserName": "aliyun$xxx@aliyun.com", "ProjectName": "meta", "OperationText": "Revoke LABEL 4 ON TABLE t1 from USER ALIYUN$xxx@aliyun.com;", "ObjectName": "t1" }PutRolePolicy
Field name
Description
Example
referencedResources
The role name for a PutRolePolicy event.
"referencedResources": { // List of resources affected by the event "Role": [ "test1_role" ] }additionalEventData
Additional information for a PutRolePolicy event. Includes the following:
RoleName: Role name.
CurrentProject: Name of the project where the role policy operation starts.
ProjectName: Name of the project that owns the role.
OperationText: Policy content.
"additionalEventData": { "RoleName": "test1_role", "CurrentProject": "meta_dev", "ProjectName": "meta_dev", "OperationText": "{\n \"Statement\": [{\n \"Action\": [\"odps:Read\",\n \"odps:List\"],\n \"Effect\": \"Allow\",\n \"Resource\": [\"acs:odps:*:projects/p1\"]},\n {\n \"Action\": [\"odps:Describe\",\n \"odps:Select\"],\n \"Effect\": \"Allow\",\n \"Resource\": [\"acs:odps:*:projects/p1/tables/m_*\"]}],\n \"Version\": \"1\"}" }SetProjectPolicy
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information for a SetProjectPolicy event:
CurrentProject: Name of the project where the project-level policy operation starts.
"additionalEventData": { "CurrentProject": "test_prj" }SetTableLabel
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information for a SetTableLabel event. Includes the following:
ObjectType: Object type, TABLE.
OperationText: Statement executed.
ObjectName: Object name.
"additionalEventData": { "ObjectType": "TABLE", "OperationText": "SET LABEL 3 TO TABLE t1test(col1);", "ObjectName": "t1test" }SetUserLabel
Field name
Description
Example
referencedResources
The Alibaba Cloud account name for a SetUserLabel event.
"referencedResources": { // List of resources affected by the event "User": [ "aliyun$xxxx@aliyun.com" ] }additionalEventData
Additional information for a SetUserLabel event:
UserName: Name of the Alibaba Cloud account for which user Label permissions are set.
"additionalEventData": { "UserName": "aliyun$xxxx@aliyun.com" }
AdminEvent
CreateProject
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information for a CreateProject event:
ProjectName: Name of the new MaxCompute project.
"additionalEventData": { "ProjectName": "xxxx" }DescribeProject
Field name
Description
Example
referencedResources
"referencedResources": { "ACS::MaxCompute::Project": [ "meta_dev" ] }additionalEventData
ProjectName: Project name.
"additionalEventData": { "ProjectName": "xxxx" }UpdateProject
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information for an UpdateProject event. Includes the following:
ProjectName: Name of the updated MaxCompute project.
Properties: Updated property flags.
State: Optional. Project state. Valid values: FROZEN (service suspended due to overdue payment) or AVAILABLE (service resumed after renewal).
"additionalEventData": { "ProjectName": "xxx", "Properties": "{\"odps.sql.decimal.odps2\":\"true\",\"odps.sql.hive.compatible\":\"false\",\"odps.sql.type.system.odps2\":\"true\"}" }DeleteProject
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information for a DeleteProject event:
ProjectName: Name of the deleted MaxCompute project.
"additionalEventData": { "ProjectName": "xxxx" }
SchemaEvent
CreateSchema
Creates a schema.
Field name
Description
Example
referencedResources
Schema name.
"referencedResources": { "ACS::MaxCompute::Schema": [ "xxxx" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }DescribeSchema
Retrieves information about a schema.
Field name
Description
Example
referencedResources
Schema name.
"referencedResources": { "ACS::MaxCompute::Schema": [ "xxxx" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }DeleteSchema
Deletes a schema.
Field name
Description
Example
referencedResources
Schema name.
"referencedResources": { "ACS::MaxCompute::Schema": [ "xxxx" ], "ACS::MaxCompute::Project": [ "meta" ] }additionalEventData
Additional information:
ProjectName: Project name.
"additionalEventData": { "ProjectName": "meta" }ListSchemas
Lists schemas.
Field name
Description
Example
referencedResources
"referencedResources": { "ACS::MaxCompute::Project": [ "meta_dev" ] }additionalEventData
Additional information:
ProjectName: Name of the project that owns the schema.
"additionalEventData": { "ProjectName": "meta_dev" }
CatalogApiEvent
All CatalogApi events use the CatalogApi event type. Event names use PascalCase, such as CreateConnection, ListTables. The original API name, such as connections.create, is retained in the api_name field of additionalEventData.
Resource information is automatically parsed from the URI path of the API request. Related fields are included in additionalEventData. Only nonempty fields are included.
Some eventName values, such as CreateProject, CreateTable, and CreateRole, are also used by other event types. Use eventType=CatalogApi to distinguish these events.
Connection
Event names: CreateConnection / GetConnection / DeleteConnection / UpdateConnection / PatchConnection / ListConnections / GetConnectionPolicy
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
namespace_id: Namespace ID.
connection_name: Connection name. Empty for create and list operations.
"additionalEventData": { "api_name": "connections.update", "namespace_id": "1393348188455728", "connection_name": "test_connection" }DataPolicy
Event names: CreateDataPolicy / GetDataPolicy / DeleteDataPolicy / UpdateDataPolicy / PatchDataPolicy / ListDataPolicies / GetDataPolicyPolicy / SetDataPolicyPolicy
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
namespace_id: Namespace ID.
data_policy_name: Data policy name. Empty for create and list operations.
"additionalEventData": { "api_name": "dataPolicies.get", "namespace_id": "1393348188455728", "data_policy_name": "test_dp0" }DataScan
Event names: CreateDataScan / GetDataScan / DeleteDataScan / PatchDataScan / ListDataScans / TriggerDataScan
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
namespace_id: Namespace ID.
data_scan_name: Data scan name. Empty for create and list operations.
"additionalEventData": { "api_name": "dataScans.get", "namespace_id": "1393348188455728", "data_scan_name": "smokeDataScanPeriodic" }ScanJob
Event names: ListScanJobs
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
namespace_id: Namespace ID.
data_scan_name: Name of the data scan that owns the scan job.
scan_job_name: Scan job name. Empty for list operations.
"additionalEventData": { "api_name": "scanJobs.list", "namespace_id": "1393348188455728", "data_scan_name": "test_scan" }Role
Event names: CreateRole / GetRole / DeleteRole / UpdateRole / PatchRole / ListRoles / GetRolePolicy / SetRolePolicy
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
namespace_id: Namespace ID.
role_name: Role name. Empty for create and list operations.
"additionalEventData": { "api_name": "roles.get", "namespace_id": "1393348188455728", "role_name": "test_role" }Namespace
Event names: GetNamespacePolicy / SetNamespacePolicy
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
namespace_id: Namespace ID.
"additionalEventData": { "api_name": "namespaces.getPolicy", "namespace_id": "1393348188455728" }Taxonomy
Event names: CreateTaxonomy / GetTaxonomy / DeleteTaxonomy / UpdateTaxonomy / PatchTaxonomy / ListTaxonomies
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
namespace_id: Namespace ID.
taxonomy_name: Taxonomy name. Empty for create and list operations.
"additionalEventData": { "api_name": "taxonomies.get", "namespace_id": "1393348188455728", "taxonomy_name": "test_taxonomy" }PolicyTag
Event names: CreatePolicyTag / GetPolicyTag / DeletePolicyTag / UpdatePolicyTag / PatchPolicyTag / ListPolicyTags / GetPolicyTagPolicy
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
namespace_id: Namespace ID.
taxonomy_name: Name of the taxonomy that owns the policy tag.
policy_tag_name: Policy tag name. Empty for create and list operations.
"additionalEventData": { "api_name": "policyTags.get", "namespace_id": "1393348188455728", "taxonomy_name": "test_taxonomy", "policy_tag_name": "test_tag" }Project
Event names: CreateProject / GetProject / GetProjectPolicy / SetProjectPolicy / PatchProject / UpdateProject / DeleteProject
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
project_name: Project name.
"additionalEventData": { "api_name": "projects.get", "project_name": "catalogapi_regression" }Schema
Event names: CreateSchema / GetSchema / GetSchemaPolicy / SetSchemaPolicy / ListSchemas / PatchSchema / UpdateSchema / DeleteSchema
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
project_name: Project name.
schema_name: Schema name. Empty for create and list operations.
"additionalEventData": { "api_name": "schemas.get", "project_name": "catalogapi_regression", "schema_name": "default" }Table
Event names: CreateTable / GetTable / DeleteTable / UpdateTable / ListTables / GetTablePolicy / SetTablePolicy / GetTableDataToken
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
project_name: Project name.
schema_name: Schema name.
table_name: Table name. Empty for create and list operations.
"additionalEventData": { "api_name": "tables.get", "project_name": "catalogapi_regression", "schema_name": "default", "table_name": "test_table" }Model
Event names: CreateModel / GetModel / DeleteModel / UpdateModel / PatchModel / ListModels / GetModelPolicy / SetModelPolicy / CreateModelVersion / DeleteModelVersion / ListModelVersions
Field name
Description
Example
referencedResources
None
None
additionalEventData
Additional information:
api_name: Original API name.
project_name: Project name.
schema_name: Schema name.
model_name: Model name. Empty for create and list operations.
"additionalEventData": { "api_name": "models.createVersion", "project_name": "catalogapi_ft", "schema_name": "default", "model_name": "test_model" }