Skip to content

Log groups

Log groupFields of interest
/aws/lambda/rag-sample-<env>-apicold_start, RDS Data API client errors
/aws/lambda/rag-sample-<env>-authorizercorrelation_id, cold_start, RDS Data API error on token lookup
/aws/lambda/rag-sample-<env>-ingestionRDS Data API and Bedrock call durations
/aws/apigateway/rag-sample-<env>-api (access log)requestId (joins the authorizer allow record’s correlation_id), sourceIp, status, responseLatency

CloudWatch Logs Insights query to surface RDS Data API errors in the API Lambda log group:

fields @timestamp, @message
| filter @message like /rds-data|RDS Data API|ExecuteStatement/
| sort @timestamp desc
| limit 50

To find the authorizer’s allow record for one request, run the following in the authorizer log group, using the requestId from the access log entry. Deny records do not carry correlation_id.

fields @timestamp, @message
| filter correlation_id = "<requestId>"
| sort @timestamp

VPC Flow Logs are not enabled. No ENIs emit traffic inside the VPC today; see RAG010. If troubleshooting intra-VPC connectivity becomes necessary after a future architecture change, enable VPC Flow Logs on the VPC and publish to CloudWatch Logs or S3 before diagnosing.