使用 監控 Amazon TranscribeAWS CloudTrail - Amazon Transcribe

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

使用 監控 Amazon TranscribeAWS CloudTrail

Amazon Transcribe 已與 整合 AWS CloudTrail,此服務提供 Amazon Transcribe 由 AWS Identity and Access Management (IAM) 使用者或角色,或由 AWS service 在 中採取動作的記錄。 CloudTrail 擷取 的所有 API 呼叫 Amazon Transcribe。這包括從 呼叫 AWS Management Console 和對 Amazon Transcribe APIs的程式碼呼叫,做為事件。透過建立線索,您可以啟用 CloudTrail 事件持續交付至 Amazon S3 儲存貯體 Amazon Transcribe,包括 的事件。如果您不建立追蹤,仍然可以在 Event history(事件歷史記錄),檢視 CloudTrail AWS Management Console 中的最新事件。使用 所收集的資訊 CloudTrail,您可以看到每個向 提出的請求 Amazon Transcribe、提出請求的 IP 地址、提出請求的人員、提出請求的時間,以及其他詳細資訊。

若要進一步了解 CloudTrail,請參閱 AWS CloudTrail 使用者指南

Amazon Transcribe 而且 CloudTrail

CloudTrail 當您建立帳戶 AWS 帳戶 時, 會在 上啟用 。當活動在 中發生時 Amazon Transcribe,該活動會與 CloudTrail 事件 CloudTrail 歷史記錄中的其他 AWS 服務 事件一起記錄在事件中。您可以在 中檢視、搜尋和下載最近的事件 AWS 帳戶。如需詳細資訊,請參閱使用 CloudTrail 事件歷程記錄檢視事件

若要取得 中事件的持續記錄 AWS 帳戶,包括 的事件 Amazon Transcribe,請建立追蹤。線索是一種組態,可讓 CloudTrail 將事件以日誌檔案形式交付至指定的 Amazon S3 bucket. CloudTrail log 檔案,其中包含一或多個日誌項目。事件代表來自任何來源的單一請求。它包含請求動作、動作的日期和時間、請求參數等資訊。 CloudTrail log 檔案不是公有 API 呼叫的排序堆疊追蹤,因此不會以任何特定順序顯示。

根據預設,當您在 中建立線索時 AWS Management Console,線索會套用至所有 AWS 區域。追蹤會記錄 AWS 分割區 AWS 區域 中所有 的事件,並將日誌檔案交付至您指定的儲存 Amazon S3 貯體。此外,您可以設定其他 AWS 服務 來進一步分析 CloudTrail 日誌中收集的事件資料,並對其採取行動。如需詳細資訊,請參閱:

CloudTrail 會記錄 API 參考中記錄的所有 Amazon Transcribe 動作。例如,CreateVocabularyGetTranscriptionJobStartTranscriptionJob操作會在 CloudTrail 日誌檔案中產生項目。

每一筆事件或日誌專案都會包含產生請求者的資訊。此資訊可協助您判斷下列事項:

  • 是否使用根登入資料或 IAM 使用者登入資料提出請求

  • 提出該請求時,是否使用特定 IAM 角色或聯合身分使用者的暫時安全登入資料

  • 請求是否由另一個 提出 AWS 服務

如需詳細資訊,請參閱 CloudTrail 使用者身分元素

您也可以將來自多個 AWS 區域 和多個 的 Amazon Transcribe 日誌檔案彙總 AWS 帳戶 到單一儲存 Amazon S3 貯體。如需詳細資訊,請參閱從多個區域接收 CloudTrail 日誌檔案從多個帳戶接收 CloudTrail 日誌檔案

範例: Amazon Transcribe 日誌檔案項目

線索是一種組態,可讓事件以日誌檔案形式交付至指定的 Amazon S3 bucket. CloudTrail log 檔案,其中包含一或多個日誌項目。事件代表來自任何來源的單一請求。它包含請求動作做為動作日期和時間的這類資訊,以及請求 parameters. CloudTrail log 檔案不是公有 API 呼叫的排序堆疊追蹤,因此它們不會以任何特定順序顯示。

StartTranscriptionJobGetTranscriptionJob 操作的呼叫會建立以下項目。

{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "111122223333", "arn": "arn:aws:iam:us-west-2:111122223333:user/my-user-name", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "my-user-name" }, "eventTime": "2022-03-07T15:03:45Z", "eventSource": "transcribe.amazonaws.com", "eventName": "StartTranscriptionJob", "awsRegion": "us-west-2", "sourceIPAddress": "127.0.0.1", "userAgent": "[]", "requestParameters": { "mediaFormat": "flac", "languageCode": "en-US", "transcriptionJobName": "my-first-transcription-job", "media": { "mediaFileUri": "s3://amzn-s3-demo-bucket/my-media-file.flac" } }, "responseElements": { "transcriptionJob": { "transcriptionJobStatus": "IN_PROGRESS", "mediaFormat": "flac", "creationTime": "2022-03-07T15:03:44.229000-08:00", "transcriptionJobName": "my-first-transcription-job", "languageCode": "en-US", "media": { "mediaFileUri": "s3://amzn-s3-demo-bucket/my-media-file.flac" } } }, "requestID": "47B8E8D397DCE7A6", "eventID": "cdc4b7ed-e171-4cef-975a-ad829d4123e8", "eventType": "AwsApiCall", "recipientAccountId": "111122223333" }, { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "111122223333", "arn": "arn:aws:iam:us-west-2:111122223333:user/my-user-name", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "my-user-name" }, "eventTime": "2022-03-07T15:07:11Z", "eventSource": "transcribe.amazonaws.com", "eventName": "GetTranscriptionJob", "awsRegion": "us-west-2", "sourceIPAddress": "127.0.0.1", "userAgent": "[]", "requestParameters": { "transcriptionJobName": "my-first-transcription-job" }, "responseElements": { "transcriptionJob": { "settings": { }, "transcriptionJobStatus": "COMPLETED", "mediaFormat": "flac", "creationTime": "2022-03-07T15:03:44.229000-08:00", "transcriptionJobName": "my-first-transcription-job", "languageCode": "en-US", "media": { "mediaFileUri": "s3://amzn-s3-demo-bucket/my-media-file.flac" }, "transcript": { "transcriptFileUri": "s3://amzn-s3-demo-bucket/my-first-transcription-job.json" } } }, "requestID": "BD8798EACDD16751", "eventID": "607b9532-1423-41c7-b048-ec2641693c47", "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ] }