All Products
Search
Document Center

Global Accelerator:View operation logs

Last Updated:Mar 27, 2024

All operations that you perform on a Global Accelerator (GA) instance are recorded in operation logs. You can query and view log information based on the event time, users, and relevant resources. This allows you to keep track of a GA instance.

View operation logs

You can use one of the following methods to view operation logs in the GA console. You can select a method based on your business requirements.

Method

Description

Billing

Action

Method 1: Basic event query

You can query events that are generated within the last 90 days for only one Alibaba Cloud account in one region. In addition, you can specify only one event property as the query condition for each event query.

The current version of ActionTrail is free of charge.

Basic event query

Method 2: Advanced event query

You can query events that are generated for more than 90 days across Alibaba Cloud accounts or regions by specifying multiple query conditions or executing custom SQL statements.

The current version of ActionTrail is free of charge. When you perform advanced event queries, data is shipped to Simple Log Service. You are charged a small fee based on the billing rules of Simple Log Service or Object Storage Service (OSS). For more information, see the following topics:

Advanced event query

Basic event query

You can query events of specific types that are generated 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, perform the following steps to filter events:

    Note

    If the page for advanced event queries is displayed, click Switch to Event Query in the upper-right corner of the page.

    1. Select an event type.

      Event type

      Option

      Read/Write type

      Valid values: Write and Read.

      Username

      Specify a username type. For example, user1 specifies a Resource Access Management (RAM) user.

      Resource Type

      Select a resource type.

    2. Select a time period. You can query events within the last 90 days.

    3. Click 图标_搜索 to filter events.

  4. Find the event that you want to manage and click the 添加 icon to view detailed information.

  5. View detailed information about the event in the section that appears.

    1. Click Event Detail.

    2. The Event Detail message displays the record in XML. You can click the 图标_复制 icon to copy the record. Then you can paste the record to an on-premises machine or another destination.

Advanced event query

You can query events that occurred in multiple regions for more than 90 days by specifying custom filter conditions or executing SQL statements. You can perform advanced event queries in standard mode or simple mode based on your business requirements. For more information about the scenarios of standard mode and simple mode, see the following table.

Mode

Query method

Description

Example

Standard mode (default)

Single-condition query

You can filter events by service name, event name, resource name, resource type, read/write type, username, AccessKey ID, source IP address, request ID, account type, region, event source, or event ID.

To query all events that are generated by GA within a period of time, use the default value for Service Name and click Query.

Multi-condition query

You can query events in multiple regions.

To query events in the China (Hangzhou) and China (Shanghai) regions, select China (Hangzhou) and China (Shanghai) from the Region drop-down list.

Simple mode

Keyword-based query

You can enter a keyword in the search box based on your business requirements.

To query all write events, enter * AND event.eventRW: Write.

Single-condition query

You can specify a filter condition in the Who, What, Which, Where, or Other category to query events.

To query all events that are generated by GA within a period of time, use the default value for Service Name and click Query.

Multi-condition query

You can specify multiple filter conditions in the Who, What, Which, Where, and Other categories to query events.

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

NOT operator-based query

You can specify multiple filter conditions and change the operator in front of a filter condition that you want to exclude to the NOT operator.

To query events that are not generated by Alex in ActionTrail, 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 that you view operation logs, click Enable Advanced Event Query.

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

    2. Enter a trail name.

    3. Click Activate to activate Simple Log Service.

      Note
      • Before you ship audit events to Logstores in Simple Log Service, you must activate and grant the required permissions to Simple Log Service. After you activate and grant the required permissions to Simple Log Service, audit events are automatically stored in the Logstores that you specify.

      • You are charged a small fee for using Simple Log Service. The fee is estimated based on the number of events in the last 30 days. For more information, click View Trail Cost Estimation.

    4. Click Confirm.

  4. On the Operation Log page, use one of the following methods to view operation logs:

    Note

    By default, if you do not specify filter conditions, all events are queried.

    Method 1: Standard mode (default)

    1. Specify filter conditions.

    2. Click Query.

    Method 2: Simple mode

    1. Click Switch to the simple mode.

    2. Specify filter conditions or query statements in the search box.

      You can specify a filter condition in the Who, What, Which, Where, or Other category to query events.

    3. Click Query.

  5. Find the event that you want to manage and click the icon.

  6. View detailed information about the event.

    1. Click Event Detail.

    2. The Event Detail message displays the record in XML. You can click the 图标_复制 icon to copy the record. Then you can paste the record to an on-premises machine or another destination.

  7. After you perform an advanced event query, you can perform the following operations on the Operations Logs page:

    • To perform basic event queries, click Switch to Event Query on the right side of the page.

    • You are charged for shipping logs to Simple Log Service. To stop the billing, perform the following steps:

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

      2. Return to the Operations Logs page in the GA console, click the hyperlink to Simple Log Service, move the pointer over the Logstore that you want to delete, and then choose image.png > Delete.

    • To disable the advanced event query feature, perform the following steps:

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

      2. Return to the Operations Logs page in the GA console and refresh the page. The Operations Logs page for basic event queries appears.

References