Lambda does not provide a way to specify a custom log group target. A log group is automatically created on the first invocation of a Lambda and the log group name will contain the name of the Lambda function.
When log streams are created however, the function version is prefixed onto the name of the log stream. You can use a log stream filter to view log streams for a specific version.
If you want to know which alias invoked a particular version of a Lambda, the alias ARN is included in the Lambda context object as:
You can use the print method to write the ARN into the log event.
How do I restrict AWS secret by Lambda alias?Accepted Answerasked 6 months ago
Lambda Alias with DynamoDB StreamsAccepted Answerasked 6 years ago
is it possible that SQS Triggers to a Lambda Function Alias?Accepted Answerasked 8 months ago
How divide Log Group by each Lambda function alias?
Lambda alias and deploymentsasked 2 years ago
Logs generated by Lambda Functionsasked 4 months ago
Stack deletion deletes log group but re-creates it on lambda invocationasked 3 years ago
How to assign a lambda function alias to LexV2asked 8 months ago
How to set Log Retention Expire to Log Group by boto3 or AWS CLI?
Lambda Alias don't use "General configuration"asked 5 months ago