CloudFront Functions Unified Logging
Networking & Content Delivery Blog
This article announces CloudFront Functions unified logging, enabling custom data to be sent directly from edge functions into CloudFront access logs without additional infrastructure.
- New cf.logCustomData() helper function sends custom data to CloudFront access logs
- Two new log fields: viewer-request-log-data and viewer-response-log-data (800 bytes each)
- Eliminates need to join CloudFront Function logs with access logs using x-edge-request-id
- Supports token validation logging, origin header tracking, and per-request metadata capture
- Data is URL-encoded and never returned to viewer or sent to origin
- Configure through AWS Console, CloudFormation, or CDK
Simplifies edge compute observability by enriching CloudFront access logs with function context at no additional cost.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Jul 14
2026
2026
Amazon CloudFront Functions now supports logging to CloudFront access logs
Nov 20
2024
2024
Amazon CloudFront now supports additional log formats and destinations for access logs
Jun 15
2026
2026
Amazon CloudWatch introduces Log Analytics for unified log analysis
Aug 19
2026
2026
Amazon CloudWatch log Centralization now supports log group tag propagation
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.