Skip to main content

Viewing Service Workbench logs

Viewing Service Workbench logs in Amazon CloudWatch

Service Workbench has API Gateway access logging enabled. The logs are available in CloudWatch at the /aws/api-gateway/<name of your API> log group:

Following is the format of the access logs:

{
"authorizer.principalId": "u-000000000000",
"error.message": "-",
"extendedRequestId": "ZuT4rGDNoAMFxXw=",
"httpMethod": "GET",
"identity.sourceIp": "22.22.222.22",
"integration.error": "-",
"integration.integrationStatus": "200",
"integration.latency": "79",
"integration.requestId": "67394741-90ae-4c6c-94fb-df8bf7be33ec",
"integration.status": "200",
"path": "/dev/api/user-roles",
"requestId": "468a1b4d-3015-4901-b749-37e4e0551029",
"responseLatency": "83",
"responseLength": "819",
"stage": "dev",
"status": "200"
}

Lambda logs are also available in CloudWatch with the default log group names /aws/lambda/<lambda function name>.

Available metrics

The default metrics for Lambda and API Gateway are available in CloudWatch. For the full list of available metrics, see:

Service Workbench does not emit any custom metrics.