This topic describes how to query the event trace and event detail of an event in the EventBridge console by using an event ID or a time range.
Query events by event ID
- Log on to the EventBridge console.
- In the left-side navigation pane, click Event Buses.
- In the top navigation bar, select a region.
- On the Event Buses page, click the name of the target event bus.
- In the left-side navigation pane, click Event Tracking.
- On the Event Tracking page, click the Query By Event ID tab, enter the Event ID, and then click Query.
- In the list of results, find the target event. In the Actions column, do the following:
Click Event Trace. On the Event Trace page, view the 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 page.Click Event Detail. On the Event Detail page, view the event parameters. The following code shows a sample 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 parameter descriptions, see event overview.
Query events by time range
- Log on to the EventBridge console.
- In the left-side navigation pane, click Event Buses.
- In the top navigation bar, select a region.
- On the Event Buses page, click the name of the target event bus.
- In the left-side navigation pane, click Event Tracking.
- On the Event Tracking page, click the Query By Time Range tab, configure the following parameters, and then click Query.
- Time Range: Select a time range.
- (Optional) Event Sources: Select an existing event source.
- (Optional) Event Type: Select an event type.
- (Optional) Rule Name: Select an existing event rule.
Note You can also specify a custom start and end time in the Time Range drop-down list. - In the list of results, find the target event. In the Actions column, do the following:
Click Event Trace. On the Event Trace page, view the 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 page.Click Event Detail. On the Event Detail page, view the event parameters. The following code shows a sample 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 parameter descriptions, see event overview.
该文章对您有帮助吗?