

支援終止通知：2025 年 9 月 15 日， AWS 將停止對 Amazon Lex V1 的支援。2025 年 9 月 15 日之後，您將無法再存取 Amazon Lex V1 主控台或 Amazon Lex V1 資源。如果您使用的是 Amazon Lex V2，請改參閱 [Amazon Lex V2 指南](https://docs.aws.amazon.com/lexv2/latest/dg/what-is.html)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon Lex 中的監控
<a name="monitoring-aws-lex"></a>

監控對於維護 Amazon Lex 聊天機器人的可靠性、可用性和效能至關重要。本主題說明如何使用 Amazon CloudWatch Logs 和 AWS CloudTrail 來監控 Amazon Lex，並描述 Amazon Lex 執行時間和頻道關聯指標。

**Topics**
+ [使用 Amazon CloudWatch 監控 Amazon Lex](monitoring-aws-lex-cloudwatch.md)
+ [使用 AWS CloudTrail 日誌監控 Amazon Lex API 呼叫](monitoring-aws-lex-cloudtrail.md)

# 使用 Amazon CloudWatch 監控 Amazon Lex
<a name="monitoring-aws-lex-cloudwatch"></a>

若要追蹤 Amazon Lex 機器人的運作狀態，請使用 Amazon CloudWatch。使用 CloudWatch，您可以取得個別 Amazon Lex 操作或 帳戶全域 Amazon Lex 操作的指標。您也可以設定 CloudWatch 警示，以便在一或多個指標超過您定義的閾值時收到通知。例如，您可以監控在特定期間內對機器人提出的請求數量、檢視成功請求的延遲，或在錯誤超過閾值時發出警示。

## Amazon Lex 的 CloudWatch 指標
<a name="aws-lex-cloudwatch-using"></a>

若要取得 Amazon Lex 操作 的指標，您必須指定下列資訊：
+ 指標維度。*維度*是一組用來識別指標的名稱與數值對。Amazon Lex 有三個維度：
  + `BotAlias, BotName, Operation`
  + `BotAlias, BotName, InputMode, Operation`
  + `BotName, BotVersion, InputMode, Operation`
+ 指標名稱，例如 `MissedUtteranceCount` 或 `RuntimeRequestCount`。

您可以使用 AWS 管理主控台、 AWS CLI或 CloudWatch API 取得 Amazon Lex 的指標。您可以透過其中一個 Amazon AWS 軟體開發套件 (SDKs) 或 CloudWatch API 工具來使用 CloudWatch API。Amazon Lex 主控台會根據來自 CloudWatch API 的原始資料顯示圖形。

您必須擁有適當的 CloudWatch 許可，才能使用 CloudWatch 監控 Amazon Lex。如需詳細資訊，請參閱《[Amazon CloudWatch 使用者指南》中的 Amazon CloudWatch 的身分驗證和存取控制](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/auth-and-access-control-cw.html)。 *Amazon CloudWatch *

## 檢視 Amazon Lex 指標
<a name="aws-lex-cloudwatch-metrics"></a>

使用 Amazon Lex 主控台或 CloudWatch 主控台檢視 Amazon Lex 指標。

**檢視指標 (Amazon Lex 主控台）**

1. 登入 AWS 管理主控台 ，並在 [https://console.aws.amazon.com/lex/](https://console.aws.amazon.com/lex/)：// 開啟 Amazon Lex 主控台。

1. 從機器人清單選擇您要查看指標的機器人。

1. 選擇 **Monitoring** (監控)。指標會顯示在圖形中。

**若要檢視指標 (CloudWatch 主控台)**

1. 登入 AWS 管理主控台 ，並在 https：//[https://console.aws.amazon.com/cloudwatch/](https://console.aws.amazon.com/cloudwatch/) 開啟 CloudWatch 主控台。

1. 選擇**指標**，選擇**所有指標**，然後選擇 **AWS/Lex**。

1. 選擇維度、選擇指標名稱，再選擇 **Add to graph (新增至圖形)**。

1. 選擇日期範圍的值。所選日期範圍的指標計數會顯示在圖形中。

## 建立警示
<a name="aws-lex-cloudwatch-alarms"></a>

CloudWatch 警示會監看指定期間內的單一指標，並執行一或多個動作：傳送通知至 Amazon Simple Notification Service (Amazon SNS) 主題或 Auto Scaling 政策。動作是根據指標在您指定的數個期間內相對於指定閾值的值。當警示變更狀態時，CloudWatch 也可以傳送 Amazon SNS 訊息給您。

CloudWatch 警示只有在狀態變更且在您指定的期間持續存在時，才會叫用動作。

**設定警示**

1. 登入 AWS 管理主控台 ，並在 https：//[https://console.aws.amazon.com/cloudwatch/](https://console.aws.amazon.com/cloudwatch/) 開啟 CloudWatch 主控台。

1. 選擇 **Alarms** (警示)，然後選擇 **Create Alarm** (建立警示)。

1. 選擇 **AWS/Lex Metrics指標**，然後選擇一個指標。

1. 對於 **Time Range (時間範圍)**，選擇要監控的時間範圍，然後選擇 **Next (下一步)**。

1. 輸入 **Name (名稱)** 和 **Description (描述)**。

1.  對於 **Whenever (每當)**，選擇 **>=** 並輸入最大值。

1. 如果您希望 CloudWatch 在達到警示狀態時傳送電子郵件，請在**動作**區段中，針對**每當此警示**，選擇**狀態為 ALARM**。對於 **Send notification to (傳送通知至)**，選擇郵件清單或選擇 **New list (新清單)** 並建立新的郵件清單。

1. 在 **Alarm Preview** (警示預覽) 區段中預覽警示。如果警示符合您的要求，選擇 **Create Alarm (建立警示)**。

## Amazon Lex 執行期的 CloudWatch 指標
<a name="cloudwatch-dimensions-for-aws-lex-runtime"></a>

下表說明 Amazon Lex 執行時間指標。


| 指標 | Description | 
| --- | --- | 
| KendraIndexAccessError | Amazon Lex 無法存取 Amazon Kendra 索引的次數。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：計數  | 
| KendraLatency | Amazon Kendra 回應來自 的請求所需的時間`AMAZON.KendraSearchIntent`。使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：毫秒 | 
| KendraSuccess | 從 `AMAZON.KendraSearchIntent`到 Amazon Kendra 索引的成功請求數量。使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：計數 | 
| KendraSystemErrors | Amazon Lex 無法查詢 Amazon Kendra 索引的次數。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：計數  | 
| KendraThrottledEvents | Amazon Kendra 調節來自 請求的次數`AMAZON.KendraSearchIntent`。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：計數  | 
| MissedUtteranceCount |  指定期間內無法辨識的表達用語數量。 使用 `Text ` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html)  | 
|  `RuntimeConcurrency`  |  指定期間內並行連線的數量。 `RuntimeConcurrency` 會以 的形式報告`StatisticSet`。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 其他操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：計數  | 
| RuntimeInvalidLambdaResponses |  指定期間內的 invalid AWS Lambda (Lambda) 回應數目。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html)  | 
| RuntimeLambdaErrors | 指定期間內的 Lambda 執行時間錯誤數目。使用 `Text ` 或 `Speech` ` InputMode` 進行 `PostContent` 操作的有效維度：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html)`PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html)  | 
| RuntimePollyErrors |  指定期間內無效的 Amazon Polly 回應數目。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html)  | 
| RuntimeRequestCount |  指定期間內的執行時間請求數量。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：計數  | 
| RuntimeSucessfulRequestLatency  此指標是 `RuntimeSucessfulRequestLatency`，而不是 `RuntimeSuccessfulRequestLatency`。  |  提出請求與傳回回應期間的成功請求延遲。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：毫秒  | 
| RuntimeSystemErrors |  指定期間內的系統錯誤數量。系統錯誤的回應碼範圍是 500 到 599。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：計數  | 
| RuntimeThrottledEvents |  已調節的請求數目。Amazon Lex 會在收到超過您帳戶每秒交易限制的請求時調節請求。如果經常超過為您的帳戶所設的限制，您可以請求提高上限。若要請求提高，請參閱 [AWS 服務限制](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html)。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：計數  | 
| RuntimeUserErrors |  指定期間內的使用者錯誤數量。使用者錯誤的回應碼範圍是 400 到 499。 使用 `Text` 或 `Speech` `InputMode` 進行 `PostContent` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) `PostText` 操作的有效維度： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/monitoring-aws-lex-cloudwatch.html) 單位：計數  | 

Amazon Lex 執行期指標使用 `AWS/Lex` 命名空間，並在下列維度中提供指標。您可以在 CloudWatch 主控台中依維度分組指標：


| 維度 | Description | 
| --- | --- | 
| BotName, BotAlias, Operation, InputMode | 依照機器人別名、機器人名稱、操作 (PostContent) 及文字或語音輸入，為指標進行分組。 | 
| BotName, BotVersion, Operation, InputMode | 依照機器人名稱、機器人版本、操作 (PostContent) 及文字或語音輸入，為指標進行分組。 | 
| BotName, BotVersion, Operation | 依照機器人名稱、機器人版本和操作 (PostText)，為指標進行分組。 | 
| BotName, BotAlias, Operation | 依照機器人名稱、機器人別名和操作 (PostText)，為指標進行分組。 | 

## Amazon Lex 頻道關聯的 CloudWatch 指標
<a name="cloudwatch-dimensions-for-aws-lex-channels"></a>

頻道關聯是 Amazon Lex 與 Facebook 等簡訊頻道之間的關聯。下表說明 Amazon Lex 頻道關聯指標。


| 指標 | Description | 
| --- | --- | 
| BotChannelAuthErrors | 簡訊管道在指定期間內傳回的身分驗證錯誤數量。身分驗證錯誤表示在管道建立期間所提供的秘密字符無效或已過期。  | 
| BotChannelConfigurationErrors | 指定期間內的組態錯誤數量。組態錯誤表示管道有一或多個組態項目無效。  | 
| BotChannelInboundThrottledEvents | Amazon Lex 在指定期間內由簡訊管道傳送的訊息受到限流的次數。  | 
| BotChannelOutboundThrottledEvents | 從 Amazon Lex 到訊息管道的傳出事件在指定期間內受到限流的次數。  | 
| BotChannelRequestCount | 指定期間內在管道上提出的請求數量。  | 
| BotChannelResponseCardErrors | Amazon Lex 無法在指定期間內張貼回應卡的次數。  | 
| BotChannelSystemErrors | 在指定期間內，頻道在 Amazon Lex 中發生的內部錯誤數目。  | 

Amazon Lex 頻道關聯指標使用 `AWS/Lex` 命名空間，並提供下列維度的指標。您可以在 CloudWatch 主控台中依維度分組指標：


| 維度 | Description | 
| --- | --- | 
| BotAlias, BotChannelName, BotName, Source | 依照機器人別名、管道名稱、機器人名稱和流量來源，為指標進行分組。 | 

## 對話日誌的 CloudWatch 指標
<a name="cloudwatch-metrics-for-logging"></a>

Amazon Lex 使用下列指標進行對話記錄：


| 指標 | Description | 
| --- | --- | 
| ConversationLogsAudioDeliverySuccess | 在指定時段成功遞送至 S3 儲存貯體的音訊日誌數目。 單位：Count | 
| ConversationLogsAudioDeliveryFailure | 在指定時段無法遞送至 S3 儲存貯體的音訊日誌數目。遞送失敗表示針對對話日誌設定的資源發生錯誤。錯誤可能包括 IAM 許可不足、無法存取的 AWS KMS 金鑰或無法存取的 S3 儲存貯體。單位：Count | 
| ConversationLogsTextDeliverySuccess | 在指定期間內成功交付至 CloudWatch Logs 的文字日誌數量。 單位：Count | 
| ConversationLogsTextDeliveryFailure | 在指定期間內無法交付至 CloudWatch Logs 的文字日誌數量。遞送失敗表示針對對話日誌設定的資源發生錯誤。錯誤可能包括 IAM 許可不足、無法存取的 AWS KMS 金鑰或無法存取的 CloudWatch Logs 日誌群組。 單位：Count | 

Amazon Lex 對話日誌指標使用 `AWS/Lex` 命名空間，並提供下列維度的指標。您可以在 CloudWatch 主控台中依維度分組指標。


| 維度 | Description | 
| --- | --- | 
| `BotAlias` | 依機器人別名將指標分組。 | 
| `BotName` | 依機器人名稱將指標分組。 | 
| `BotVersion` | 依機器人版本將指標分組。 | 

# 使用 AWS CloudTrail 日誌監控 Amazon Lex API 呼叫
<a name="monitoring-aws-lex-cloudtrail"></a>

Amazon Lex 已與 服務整合 AWS CloudTrail，此服務提供由 Amazon Lex AWS 中的使用者、角色或服務所採取之動作的記錄。CloudTrail 會將 Amazon Lex 的 API 呼叫子集擷取為事件，包括來自 Amazon Lex 主控台的呼叫，以及來自對 Amazon Lex APIs程式碼呼叫。如果您建立線索，則可以將 CloudTrail 事件持續交付至 Amazon S3 儲存貯體，包括 Amazon Lex 的事件。即使您未設定追蹤，依然可以透過 CloudTrail 主控台中的**事件歷史記錄**檢視最新事件。使用 CloudTrail 收集的資訊，您可以判斷向 Amazon Lex 提出的請求、提出請求的 IP 地址、提出請求的人員、提出請求的時間，以及其他詳細資訊。

若要進一步了解 CloudTrail，包括如何設定及啟用，請參閱[《AWS CloudTrail 使用者指南》](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/)。

## CloudTrail 中的 Amazon Lex 資訊
<a name="service-name-info-in-cloudtrail"></a>

當您建立 AWS 帳戶時，會在您的帳戶上啟用 CloudTrail。當 Amazon Lex 中發生支援的事件活動時，該活動會與**事件歷史記錄**中的其他 AWS 服務事件一起記錄在 CloudTrail 事件中。您可以在 AWS 帳戶中檢視、搜尋和下載最近的事件。如需詳細資訊，請參閱《使用 CloudTrail 事件歷史記錄檢視事件》[https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html)。

若要持續記錄您 AWS 帳戶中的事件，包括 Amazon Lex 的事件，請建立追蹤。線索能讓 CloudTrail 將日誌檔案交付至 Amazon Simple Storage Service (Amazon S3) 儲存貯體。根據預設，當您在主控台建立追蹤記錄時，追蹤記錄會套用到所有 AWS 區域。線索會記錄 AWS 分割區中所有區域的事件，並將日誌檔案交付至您指定的 S3 儲存貯體。此外，您可以設定其他 AWS 服務，以進一步分析和處理 CloudTrail 日誌中所收集的事件資料。如需詳細資訊，請參閱：
+ [建立追蹤的概觀](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-create-and-update-a-trail.html)
+ [CloudTrail 支援的服務和整合](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-aws-service-specific-topics.html#cloudtrail-aws-service-specific-topics-integrations)
+ [設定 CloudTrail 的 Amazon SNS 通知](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/getting_notifications_top_level.html)
+ [從多個區域接收 CloudTrail 日誌檔案](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/receive-cloudtrail-log-files-from-multiple-regions.html)，以及[從多個帳戶接收 CloudTrail 日誌檔案](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-receive-logs-from-multiple-accounts.html)

Amazon Lex 支援將下列操作記錄為 CloudTrail 日誌檔案中的事件：
+  [CreateBotVersion](API_CreateBotVersion.md)
+ [CreateIntentVersion](API_CreateIntentVersion.md) 
+ [CreateSlotTypeVersion](API_CreateSlotTypeVersion.md)
+ [DeleteBot](API_DeleteBot.md)
+ [DeleteBotAlias](API_DeleteBotAlias.md)
+ [DeleteBotChannelAssociation](API_DeleteBotChannelAssociation.md)
+ [DeleteBotVersion](API_DeleteBotVersion.md)
+ [DeleteIntent](API_DeleteIntent.md)
+ [DeleteIntentVersion](API_DeleteIntentVersion.md)
+ [DeleteSlotType](API_DeleteSlotType.md)
+ [DeleteSlotTypeVersion](API_DeleteSlotTypeVersion.md)
+ [DeleteUtterances](API_DeleteUtterances.md)
+ [GetBot](API_GetBot.md)
+ [GetBotAlias](API_GetBotAlias.md)
+ [GetBotAliases](API_GetBotAliases.md)
+ [GetBotChannelAssociation](API_GetBotChannelAssociation.md)
+ [GetBotChannelAssociations](API_GetBotChannelAssociations.md)
+ [GetBots](API_GetBots.md)
+ [GetBotVersions](API_GetBotVersions.md)
+ [GetBuiltinIntent](API_GetBuiltinIntent.md)
+ [GetBuiltinIntents](API_GetBuiltinIntents.md)
+ [GetBuiltinSlotTypes](API_GetBuiltinSlotTypes.md)
+ [GetSlotTypeVersions](API_GetSlotTypeVersions.md)
+ [GetUtterancesView](API_GetUtterancesView.md)
+ [PutBot](API_PutBot.md)
+  [PutBotAlias](API_PutBotAlias.md)
+ [PutIntent](API_PutIntent.md)
+  [PutSlotType](API_PutSlotType.md) 

每一筆事件或日誌專案都會包含產生請求者的資訊。此資訊可協助您判斷下列事項：
+ 該請求是否使用根或 使用者登入資料提出
+ 提出該請求時，是否使用了特定角色或聯合身分使用者的臨時安全憑證
+ 該請求是否由另一項 AWS 服務提出

如需詳細資訊，請參閱 [CloudTrail userIdentity 元素](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html)。

如需有關在 CloudTrail 日誌中記錄的 Amazon Lex 動作的資訊，請參閱 [Amazon Lex Model Building Service](https://docs.aws.amazon.com/lex/latest/dg/API_Operations_Amazon_Lex_Model_Building_Service.html)。例如，對 [PutBot](API_PutBot.md)、 [GetBot](API_GetBot.md)和 [DeleteBot](API_DeleteBot.md)操作的呼叫會在 CloudTrail 日誌中產生項目。記錄在 [Amazon Lex 執行時間服務](https://docs.aws.amazon.com/lex/latest/dg/API_Operations_Amazon_Lex_Runtime_Service.html)、[PostContent](API_runtime_PostContent.md) 和 [PostText](API_runtime_PostText.md) 中的動作都不會記錄。

## 範例：Amazon Lex 日誌檔案項目
<a name="understanding-aws-lex-entries"></a>

權杖是一種組態，能讓事件以日誌檔案的形式交付至您指定的 S3 儲存貯體。CloudTrail 日誌檔案包含一個或多個日誌項目。一個事件為任何來源提出的單一請求，並包含請求動作、請求的日期和時間、請求參數等資訊。CloudTrail 日誌檔案並非依公有 API 呼叫追蹤記錄的堆疊排序，因此不會以任何特定順序出現。

下列範例 CloudTrail 日誌項目會顯示呼叫 `PutBot`操作的結果。