View the operation log

更新时间: 2026-05-08 03:35:26

The operation log records all operations on your Global Accelerator (GA) instances. You can use the log to view and search for event details, such as the event time, the user, and the resources involved. This helps you track all changes to your instances.

View the operation log

The Global Accelerator console offers two ways to view the operation log. You can choose the method that best fits your needs.

Method

Description

Billing

Actions

Method 1: Basic event query

You can query events from the last 90 days within a single Alibaba Cloud account and region. Queries are limited to a single attribute.

ActionTrail is currently free of charge.

Basic event query

Method 2: Advanced event query

You can query logs older than 90 days across multiple Alibaba Cloud accounts and regions. This method supports multi-attribute queries and custom SQL statements.

ActionTrail is currently free of charge. However, when you use the advanced event query feature, your log data is delivered to Log Service, which incurs minor fees. You are billed separately based on Log Service or Object Storage Service (OSS) pricing. For more information, see these topics:

Advanced event query

Basic event query

You can query only specific types of events that occurred within the last 90 days.

  1. Log on to the GA console.

  2. In the left-side navigation pane, choose Log Management > Operations Log.

  3. On the Operations Log page, filter the logs.

    Note

    If the advanced event query page appears, click Switch to Basic Event Query in the upper-right corner.

    1. Select an event type.

      Event type

      Supported options

      Read/Write Type

      Valid options are Write and Read.

      Username

      You can enter a username. For example, user1 represents a RAM user.

      Resource Type

      Select a resource type from the drop-down list.

    2. Select a time range for events within the last 90 days.

    3. Click 图标_搜索 to search.

  4. Find the operation log you want to view and click the 添加 icon next to it to view its details.

  5. View details about the event in the section that appears.

    1. Click Event Details.

    2. In the Event Details dialog box, view the event record in XML format. You can click the 图标_复制.png icon on the right to copy the record to a local file or another location.

Advanced event query

Use flexible filter conditions or SQL statements to query events older than 90 days or across multiple regions. Advanced event query supports Standard mode and Simple mode. You can choose a mode based on your needs. The following table describes the use cases for each mode.

Mode

Query method

Description

Example

Standard mode (default)

Single-condition query

Filter events by criteria such as service name, event name, resource name, resource type, read/write type, username, AccessKey ID, source IP address, request ID, account type, Alibaba Cloud region, event source, or event ID.

To query all events generated by GA within a specified time range, leave Name set to its default value (Global Accelerator) and click Search.

Multi-condition query

Query events for GA across multiple regions.

To query events for GA in the China (Hangzhou) and China (Shanghai) regions, set Alibaba Cloud Region to China (Hangzhou) and China (Shanghai).

Simple mode

Keyword query

Enter specific search keywords.

To query all write events, enter * AND event.eventRW: Write in the search box.

Specified-condition query

Query events by specifying conditions for Who, What, Which, Where, or Other.

To query all events generated by GA within a specified time range, leave Name set to its default value (Global Accelerator) and click Search.

Multi-condition query

Specify multiple conditions across the Who, What, Which, Where, and Other categories.

To query ActionTrail events generated by user Alex, enter event.userIdentity.userName: Alex in the search box.

Exclusion query

Specify multiple conditions and use the NOT operator before a condition to exclude it from the results.

To query ActionTrail events not generated by user Alex, enter NOT event.userIdentity.userName: Alex in the search box.

  1. Log on to the GA console.

  2. In the left-side navigation pane, choose Log Management > Operations Log.

  3. The first time you view the operation log, click Enable Advanced Event Query.

    1. In the Enable Advanced Event Query panel, select Create Trail or Select an existing trail.

    2. Enter a name for the trail.

    3. Click Activate Now to activate Log Service (SLS).

      Note
      • To deliver audit events to a Log Service Logstore, you must first activate and authorize Log Service. Once authorized, ActionTrail automatically stores your audit events in the specified Logstore, where you can easily view and manage them.

      • Delivering data to Log Service incurs minor fees, which are estimated based on your event volume over the last 30 days. You can click View Trail Cost Estimation to learn more.

    4. Click OK.

  4. On the Operation Log page, choose one of the following methods to view the operation log for GA.

    Note

    If you do not set any filter conditions, all events are queried by default.

    Standard mode (default)

    1. Enter filter conditions.

    2. Click Search.

    Simple mode

    1. Click Switch to Simple Mode.

    2. In the text box, enter a query statement or use keywords to specify conditions for Who, What, Which, Where, or Other.

    3. Click Search.

  5. In the list of filtered events, click the icon next to the target event.

  6. View details about the event in the section that appears.

    1. Click Event Details.

    2. In the Event Details dialog box, view the event record in XML format. You can click the 图标_复制 icon on the right to copy the record to a local file or another location.

  7. After using the advanced event query feature, you can perform these optional operations on the Operations Log page:

    • To switch back to basic event query, click Switch to Basic Event Query on the right side of the page.

    • Delivering data to Log Service incurs minor fees. To stop these charges, do the following:

      1. Click the trail name. On the trail details page, turn off Trail Status.

      2. Return to the Operations Log page in the GA console. Click the Log Service link, hover over the target Logstore, and then choose image.png > Delete.

    • To disable the advanced event query feature, do the following:

      1. Click the trail name link. In the left-side navigation pane, click Trails. On the Trails page, turn off Advanced Query.

      2. Return to the Operations Log page in the GA console and refresh the page. The Operations Log page switches back to the basic event query view.

Related documents

上一篇: Access logs 下一篇: Basic GA instances
阿里云首页 全球加速 相关技术圈