- Newest
- Most votes
- Most comments
Based on the information available, there isn't a documented known issue specifically about Lambda log stream date prefixes being inconsistently assigned.
By default, AWS Lambda automatically creates log streams in CloudWatch Logs with a naming convention that follows the format YYYY/MM/DD/[<FunctionVersion>]<InstanceId>. The date portion (YYYY/MM/DD) is meant to represent when the Lambda function instance was created.
For custom log groups, Lambda follows a similar convention: YYYY/MM/DD/<function_name>[<function_version>][<execution_environment_GUID>].
The inconsistency you're observing where log streams created within seconds of each other are getting different date prefixes could potentially happen if:
- The log streams are being created very close to midnight UTC, where some executions fall on one day and others on the next.
- There might be some caching or batching of log stream creation that's causing the timestamp discrepancy.
Since you're unable to submit a case with a Basic tier plan, you might want to:
- Monitor if the issue persists or follows any pattern
- Check if the actual timestamps within the log entries are correct, even if the stream name prefix is not
- Consider posting your observation on AWS re:Post for broader community input
If this is affecting your ability to find or analyze logs, you might need to adjust your log querying approach to account for potential date prefix inconsistencies.
Sources
Logging and metrics for AWS Lambda - AWS Prescriptive Guidance
Lambda Function is Showing different CloudWatch Log Group | AWS re:Post
answered a year ago
Relevant content
asked 7 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
