Skip to content

Instantly share code, notes, and snippets.

@nashid
Created November 22, 2024 04:58
Show Gist options
  • Save nashid/cfbc413b3930ae217e8b6ee0bf1498b1 to your computer and use it in GitHub Desktop.
Save nashid/cfbc413b3930ae217e8b6ee0bf1498b1 to your computer and use it in GitHub Desktop.
How to View CloudTrail Logs for API Calls

How to View CloudTrail Logs for API Calls

1. Open the CloudTrail Console

  1. Log in to the AWS Management Console.
  2. Navigate to the CloudTrail Console.

2. Use the Event History

  1. In the left-hand menu, click Event history.
  2. Apply filters to narrow down the logs:
    • Event source: Enter bedrock.amazonaws.com to see AWS Bedrock-related API calls.
    • Event name: Filter by specific API actions like InvokeModel.
    • Time range: Adjust to view events from the desired period.

Example Filters:

Filter Type Value
Event Source bedrock.amazonaws.com
Event Name InvokeModel
  1. Review the list of events and click on any event for more details:
    • Event Time: When the API call occurred.
    • Request Parameters: Input parameters used in the call.
    • Response Elements: Output returned by the API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment