Ensure that model invocation logging is enabled for Amazon Bedrock service in order to collect metadata, requests, and responses for all model invocations in your AWS cloud account.
excellence
In Amazon Bedrock, model invocation logging enables you to collect the invocation request and response data, along with metadata, for all "Converse", "ConverseStream", "InvokeModel", and "InvokeModelWithResponseStream" API calls in your AWS account. Each log entry includes important details such as the timestamp, request ID, model ID, and token usage. Invocation logs can be utilized for troubleshooting, performance enhancements, abuse detection, and security auditing. By default, model invocation logging is disabled.
Audit
To determine if model invocation logging is enabled in the Amazon Bedrock account level settings, perform the following operations:
Remediation / Resolution
To ensure that model invocation logging is enabled in the Amazon Bedrock account level settings, perform the following operations:
References
- AWS Documentation
- Monitor Amazon Bedrock
- Model invocation logging
- AWS Command Line Interface (CLI) Documentation
- get-model-invocation-logging-configuration
- put-model-invocation-logging-configuration