CloudWatch Logs Attributes
Use the following attributes to get relevant data from your CloudWatch logs.
Attribute | Description |
---|---|
@functionName | Name of the Lambda function |
@version | Lambda function version |
@region | Region in which the function is hosted |
@accountId | AWS account Id |
@requestId | Invocation Id of Lambda |
@logGroup | CloudWatch logs group name |
@logStream | CloudWatch Log stream name |
@type | Type of message in your log:
|
@functionError | Lambda invocation errors, such as:
|
@duration | Time taken to execute the Lambda function |
@billedDuration | Time for which the Lambda execution is billed |
@memorySize | Allocated memory for the Lambda function |
@maxMemoryUsed | Total memory used by the Lambda function |
@traceid | Trace Id from AWS X-Ray |
@segmentid | Trace subsegment Id |
@coldStartDuration | Coldstart duration of the Lambda function |