This topic describes how to query events by event ID or time range in the EventBridge console.

Query events by event ID

  1. Log on to the EventBridge console.
  2. In the left-side navigation pane, click Event Buses.
  3. In the top navigation bar, select a region.
  4. On the Event Buses page, click the name of the target event bus.
  5. In the left-side navigation pane, click Event Tracking.
  6. On the Event Tracking page, click the Query By Event ID tab, enter an Event ID, and then click Query.
  7. In the result list, you can perform the following operations to query the trace and details of the event:
    • Click Event Trace in the Operations column. In the Event Trace message, view event information and delivery details in the Event Reception and Event Delivery sections.

      Note To export the event trace, click Export Event Trace in the upper-right corner of the Event Trace message.
    • Click Event Detail in the Operations column. In the Event Detail message, view the parameters of the event. The following code shows sample parameters of the event:

      {
          "datacontenttype": "application/json;charset=utf-8",
          "aliyunaccountid": "123456789098****",
          "data": {
              "number": 100,
              "name": "Eventbridge"
          },
          "subject": "my:subject",
          "source": "aliyun.ui",
          "type": "ui:Created:PostObject",
          "dataschema": "http://example.com/item.json",
          "aliyunpublishtime": "2021-03-08T08:34:01.462Z",
          "specversion": "1.0",
          "aliyuneventbusname": "mybus",
          "id": "1ad8djaf-j6be-i648-f6i1-3ijh6bbb****",
          "aliyunregionid": "cn-hangzhou",
          "aliyunpublishaddr": "42.120.XX.XX"
      }

      For more information about the parameters, see Overview.

Query events by time range

  1. Log on to the EventBridge console.
  2. In the left-side navigation pane, click Event Buses.
  3. In the top navigation bar, select a region.
  4. On the Event Buses page, click the name of the target event bus.
  5. In the left-side navigation pane, click Event Tracking.
  6. On the Event Tracking page, click the Query By Time Range tab, set the parameters, and then click Query.
    • Time Range: Select a time range.
    • Event Source: Optional. Select an event source.
    • Event Type: Optional. Select an event type.
    • Rule Name: Optional. Select an event rule.
    Note You can also select a start time and an end time from the Time Range drop-down list.
  7. In the result list, you can perform the following operations to query the trace and details of the event:
    • Click Event Trace in the Operations column. In the Event Trace message, view event information and delivery details in the Event Reception and Event Delivery sections.

      Note To export the event trace, click Export Event Trace in the upper-right corner of the Event Trace message.
    • Click Event Detail in the Operations column. In the Event Detail message, view the parameters of the event. The following code shows sample parameters of the event:

      {
          "datacontenttype": "application/json;charset=utf-8",
          "aliyunaccountid": "123456789098****",
          "data": {
              "number": 100,
              "name": "Eventbridge"
          },
          "subject": "my:subject",
          "source": "aliyun.ui",
          "type": "ui:Created:PostObject",
          "dataschema": "http://example.com/item.json",
          "aliyunpublishtime": "2021-03-08T08:34:01.462Z",
          "specversion": "1.0",
          "aliyuneventbusname": "mybus",
          "id": "1ad8djaf-j6be-i648-f6i1-3ijh6bbb****",
          "aliyunregionid": "cn-hangzhou",
          "aliyunpublishaddr": "42.120.XX.XX"
      }

      For more information about the parameters, see Overview.