

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 查看跟踪的 Insights 事件
<a name="view-insights-events"></a>

本节介绍如何为启用了 Insights 的跟踪查询过去 90 天的 CloudTrail Insights 事件。有关如何查看事件数据存储的 CloudTrail Insights 的信息，请参阅[查看事件数据存储的 Insights 控制面板](insights-events-view-lake.md#insights-events-view-lake-dashboard)。

您可以从控制台上的 **Insights** 页面查看、筛选和下载跟踪的过去 90 天的 Insights 事件。

您可以通过编程方式获取最近 90 天的 Insights 事件：
+ For Trails 通过运行 Amazon CLI [https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/lookup-events.html](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/lookup-events.html)命令或 [https://docs.amazonaws.cn/awscloudtrail/latest/APIReference/API_LookupEvents.html](https://docs.amazonaws.cn/awscloudtrail/latest/APIReference/API_LookupEvents.html)API 操作来记录管理事件。
+ 对于 Trails，通过运行 Amazon CLI [https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/list-insights-data.html](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/list-insights-data.html)命令或 [https://docs.amazonaws.cn/awscloudtrail/latest/APIReference/API_ListInsightsData.html](https://docs.amazonaws.cn/awscloudtrail/latest/APIReference/API_ListInsightsData.html)API 操作来记录数据事件。

有关跟踪的 Insights 事件记录字段的描述，请参阅[CloudTrail 记录路径的 Insights 事件的内容](cloudtrail-insights-fields-trails.md)。

**注意**  
**只有在记录管理事件 Amazon CLI `lookup-events`或数据事件的跟踪上启用了 Insights 时，Insights 页面和/或`list-insights-data`命令才会列出 Insights 事件。**有关对跟踪启用 Insights 的信息，请参阅[使用控制台对现有跟踪启用 CloudTrail Insights](insights-events-enable.md#insights-events-enable-trail)和[使用记录跟踪的见解事件 Amazon CLI](insights-events-CLI-enable.md#insights-events-CLI-enable-trails)。  
 要按照 API 调用率记录 Insights 事件，跟踪必须记录`write`管理事件或数据事件。要按照 API 错误率记录 Insights 事件，跟踪必须记录`read``write`管理事件或数据事件。

**Topics**
+ [使用控制台查看跟踪的 Insights 事件](view-insights-events-console.md)
+ [使用查看路径的见解事件 Amazon CLI](view-insights-events-cli.md)