All Products
Search
Document Center

Elastic Compute Service:View historical system events

Last Updated:Sep 13, 2023

You can view Elastic Compute Service (ECS) system events that were handled within the last week to obtain data for troubleshooting and analysis purposes.

View historical system events in the ECS console

  1. Log on to the ECS console.

  2. In the left-side navigation pane, click Events.

  3. On the Events page, you can view system events of different types in different regions to obtain information such as instance IDs, event types, and event states.

    The following figure shows the instance billing events in a specified state in a specific region.

    查看历史事件

Query historical system events by using Alibaba Cloud CLI

  1. Obtain the ID of the instance for which you want to query historical system events.

    aliyun ecs DescribeInstances --RegionId <TheRegionId> --output cols=InstanceId,InstanceName rows=Instances.Instance[]
  2. Call the DescribeInstanceHistoryEvents operation to query the historical system events of the instance.

    aliyun ecs DescribeInstanceHistoryEvents --RegionId <TheRegionId> --InstanceId i-bp13kpqetxnp2a****** --output cols=EventId,EventTypeName rows=InstanceSystemEventSet.InstanceSystemEventType[]