View operation logs

更新时间:
复制 MD 格式

The operation log feature for Classic Load Balancer (CLB) records activities related to the CLB service in your account.

Background information

The CLB operation log feature is integrated with ActionTrail. ActionTrail records activities in your Alibaba Cloud account, including operations performed through the Alibaba Cloud Management Console, APIs, and developer tools.

Query logs

  1. Log on to the CLB console.

  2. In the left-side navigation pane, choose Logs > Operation Log.

  3. On the Operation Log page, select an Event Type, specify the Event Time (up to 90 days), and then click 图标_搜索 to filter the logs.

    Event type

    Supported options

    Read/Write Type

    You can select either Write or Read.

    User Name

    Enter a username to filter the results. For example, user1 indicates a RAM user.

    Resource Type

    Select a resource type from the drop-down list.

    Event Name

    Enter a specific API event name to filter by. For example, entering SetLoadBalancerStatus finds records of operations that start or stop a CLB instance.

  4. In the list of filtered events, click the icon next to the target event, and then click Event Detail. In the Event Detail dialog box, view the event record in XML format. You can then click 图标_复制 to copy the record.

Troubleshooting example: CLB instance stops unexpectedly

When a CLB instance stops unexpectedly, you can use the operation log to identify the cause of the stop, such as a manual action or a system issue.

To troubleshoot this issue, follow these steps:

  1. On the Operation Log page, set Event Name to SetLoadBalancerStatus, select the appropriate time range, and filter the results.

  2. In the filtered results, click the target event to view its details. Focus on the following fields:

    • event source: The service endpoint where the operation originated, such as slb-openapi-share.aliyuncs.com.

    • event type: ConsoleOperation indicates an operation performed in the console, and ApiCall indicates an API call.

    • operator: The identity of the user who performed the operation. For example, root indicates the root account, and a RAM username indicates a RAM user.

  3. Based on this information, you can determine which account stopped the CLB instance and how the operation was performed. For example, if the event type is ConsoleOperation and the operator is root, this indicates that the instance was manually stopped by the root account in the console.