Home icon

Amazon CloudFront Functions now supports logging to CloudFront access logs

News



This article announces that CloudFront Functions now supports logging custom data directly into CloudFront access logs using a new cf.logCustomData() helper method.

  • Write custom data from CloudFront Functions directly to CloudFront access logs
  • Log A/B test variants, authentication outcomes, and routing decisions in a single record
  • Works with both real-time log configurations and standard logging (v2)
  • Eliminates need to correlate function decisions across separate logging systems
  • No additional charge; standard CloudFront Functions pricing applies
  • Available in all CloudFront edge locations

This enhancement simplifies analysis of CloudFront Functions behavior by consolidating function decisions and request outcomes into a single queryable log.



Go to article

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

Nov 20
2024
Amazon CloudFront now supports additional log formats and destinations for access logs
Aug 18
2026
CloudFront Functions Unified Logging
Nov 18
2026
Amazon CloudFront standard logging now supports CMCD and additional log fields
Jun 29
2026
Amazon S3 server access logs now deliver to Amazon CloudWatch Logs and Amazon S3 Tables

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.