You can view and query PAI event logs for the last 90 days by default. For long-term retention and analysis, create a trail to deliver events to Simple Log Service (SLS) or Object Storage Service (OSS).
PAI events
For a list of event names supported by PAI, see the API reference.
Query events
Basic query
By default, ActionTrail records events for the last 90 days. You can query events in the ActionTrail console. For more information, see Query events in the ActionTrail console.
Advanced query
-
Log on to the ActionTrail console.
-
A trail is created, and events are delivered to Simple Log Service. For more information, see Create a single-account trail and Create a multi-account trail.
-
In the left-side navigation pane, click .
-
On the Default tab of the Custom Template page, set the query conditions.
Custom queries support two modes: simple query for visual search, and SQL query for flexible search using Structured Query Language (SQL).
Simple query
In Simple Query mode, follow the on-screen instructions to configure the query conditions.
The following table describes the key parameters:
Parameter
Description
Service Name
Select Platform for AI (PAI).
Region
Select the region. For example, China (Hangzhou).
Event name
Select the event. For example, StopJob.
Read/write type
Select a read/write type:
-
Write
-
Read
SQL query
Disable the Simple Query switch and enter your SQL query conditions.
-
To start from a simple query, set conditions in Simple Mode mode, then turn off the Simple Mode switch. Conditions set in Simple Mode mode are automatically converted into a customizable SQL statement.
-
SQL syntax and query examples: SQL syntax for Advanced Event Query.
-
-
Click Run.
On the Raw Log tab, ActionTrail displays the event logs that match your query.
-
In the event list, click Actions in the Actions column.
In the View Event Details panel, you can view the basic information and the event record.