DataWorks is integrated with ActionTrail. This allows you to query ActionTrail for
DataWorks behavior events of your Alibaba Cloud account over the last 90 days. You
can use ActionTrail to deliver the events to a Logstore in Log Service or a specific
Object Storage Service (OSS) bucket for monitoring and alerting. This way, you can
audit the events and trace and analyze issues at the earliest opportunity. This topic
describes how to query DataWorks behavior events in ActionTrail.
Background information
Alibaba Cloud ActionTrail is a service that monitors and records the actions of your
Alibaba Cloud account. The actions include the access to and use of cloud products
and services through the Alibaba Cloud Management Console, API operations, and SDKs.
ActionTrail records these actions as events. You can download these events from the
ActionTrail console or configure ActionTrail to deliver these events to Log Service
Logstores or OSS buckets. Then, you can perform operations such as behavior analysis,
security analysis, resource change tracking, and compliance auditing based on the
events. For more information, see What is ActionTrail?
Precautions
- After you perform an operation in DataWorks, ActionTrail records the operation in
5 minutes to 10 minutes.
- You can configure tracking alerts for important events to identify and handle anomalous activities at the earliest
opportunity.
Query DataWorks behavior events
- Log on to the ActionTrail console.
- In the left-side navigation pane, click Event Detail Query. Then, select a region in the top navigation bar.
- On the Event Detail Query page, select Service Name from the drop-down list and enter DataWorks in the search box to query DataWorks events that are recorded.

The query results contain the following information: Event Time, Username, Event Name, Resource Type, and Resource Name.
You can use
Event Name to determine whether an event is recorded for an API call and query the event meaning.
Note An API operation can be called by using a codeless user interface (UI) or code editor.
Note If the meaning of an event cannot be obtained by using one of the preceding methods,
submit a ticket to query the details of the event.
- Expand an event and click Event Detail to view the details of the event.

The following table describes the event details.
No. |
Description |
1 |
The details of the event.
Move the pointer over the username and click detail to go to the RAM console. Then, you can view the details of the user.
|
2 |
The resource type, resource name, and operation involved in the event.
|
3 |
You can click Event Detail to view the code record of the event.
|
The following figure shows the code record of the listProjectResourceGroups event.

In the
Event Detail dialog box, click the

icon in the upper-right corner to copy the code record.
What to do next
You can use the queried event details to perform operations such as behavior analysis,
security analysis, resource change tracking, and compliance auditing.