AWS AmazonCloudFront: CloudFront standard logs: add new fields (s-ip, r-host, MQCS, CMCD)
Summary
Adds ~33 new documented standard access log fields, including the CloudFront server IP (s-ip), primary distribution ID/DNS name for continuous deployment, origin host (r-host), origin-selection reason (sr-reason), Media Quality Confidence Score (x-edge-mqcs), and a full set of Common Media Client Data (CMCD) fields.
Security assessment
The change is purely documentation of additional access-log fields for media delivery troubleshooting (origin failover, MQCS, CMCD playback metadata). It improves observability but describes no vulnerability fix, no authz/encryption change, and no security control; the new fields are operational/telemetry data rather than security-relevant audit content.
Evidence
+ 9. `**s-ip**` – The IP address of the CloudFront server that served the request, for example, `192.0.2.183` or `2001:0db8:85a3::8a2e:0370:7334`.
Diff
diff --git a/AmazonCloudFront/latest/DeveloperGuide/standard-logging.md b/AmazonCloudFront/latest/DeveloperGuide/standard-logging.md index 5fd6f1d..ef7d68f 100644 --- a//AmazonCloudFront/latest/DeveloperGuide/standard-logging.md +++ b//AmazonCloudFront/latest/DeveloperGuide/standard-logging.md @@ -561,0 +562,52 @@ In addition, you can select the following [real-time access log fields](./real-t + 9. `**s-ip**` – The IP address of the CloudFront server that served the request, for example, `192.0.2.183` or `2001:0db8:85a3::8a2e:0370:7334`. + + 10. `**primary-distribution-id**` – When continuous deployment is enabled, this ID identifies which distribution is the primary in the current distribution. + + 11. `**primary-distribution-dns-name**` – When continuous deployment is enabled, this value shows the primary domain name that is related to the current CloudFront distribution (for example, d111111abcdef8.cloudfront.net). + + 12. `**r-host**` – This field is sent for origin requests and it indicates the domain of the origin server used to serve the object. In case of errors, you can use this field to find the last origin attempted, for example: ``cd8jhdejh6a`.mediapackagev2.us-east-1.amazonaws.com`. + + 13. `**sr-reason**` – This field provides a reason why the origin was selected. It's empty when a request to the primary origin succeeds. If origin failover occurs, the field will contain the HTTP error code that led to the failover, such as `Failover:403` or `Failover:502`. In case of origin failover, if the retried request also fails and you have not configured custom error pages, then `r-status` indicates the response of the second origin. However, if you have configured custom error pages along with origin failover, then this will contain the response of the second origin if the request failed and a custom error page was returned instead. If no origin failover occurs but media quality-aware resilience (MQAR) origin selection occurs, then this will be logged as `MediaQuality`. For more information, see [Media quality-aware resiliency](./media-quality-score.html). + + 14. `**x-edge-mqcs**` – This field indicates the Media Quality Confidence Score (MQCS) (range: 0 – 100) for media segments that CloudFront retrieved in the CMSD response headers from MediaPackage v2. This field is available for requests matching a cache behavior that has an MQAR-enabled origin group. CloudFront logs this field for media segments that are also served from its cache in addition to origin requests. For more information, see [Media quality-aware resiliency](./media-quality-score.html). + + 15. Common Media Client Data (CMCD) fields + +For more information about these fields, see the [CTA Specification Web Application Video Ecosystem - Common Media Client Data CTA-5004](https://www.cta.tech/standards/wave-common-media-client-data/) document. + + 16. `**cmcd-encoded-bitrate**` – The encoded bitrate of the requested audio or video object. + + 17. `**cmcd-buffer-length**` – The buffer length of the requested media object. + + 18. `**cmcd-buffer-starvation**` – Whether the buffer was starved at some point between the prior request and the object request. This can cause the player to be in a rebuffering state, which can stall the video or audio playback. + + 19. `**cmcd-content-id**` – A unique string that identifies the current content. + + 20. `**cmcd-object-duration**` – The playback duration of the requested object (in milliseconds). + + 21. `**cmcd-deadline**` – The deadline from the request time that the first sample of this object must be available, so that a buffer underrun state or other playback problems are avoided. + + 22. `**cmcd-measured-throughput**` – The throughput between the client and server, as measured by the client. + + 23. `**cmcd-next-object-request**` – The relative path of the next requested object. + + 24. `**cmcd-next-range-request**` – If the next request is a partial object request, this string denotes the byte range to be requested. + + 25. `**cmcd-object-type**` – The media type of the current object being requested. + + 26. `**cmcd-playback-rate**` – 1 if real-time, 2 if double-speed, 0 if not playing. + + 27. `**cmcd-requested-maximum-throughput**` – The requested maximum throughput that the client considers sufficient for asset delivery. + + 28. `**cmcd-streaming-format**` – The streaming format that defines the current request. + + 29. `**cmcd-session-id**` – A GUID identifying the current playback session. + + 30. `**cmcd-stream-type**` – Token identifying segment availability. `v` = all segments are available. `l` = segments become available over time. + + 31. `**cmcd-startup**` – Key is included without a value if the object is needed urgently during startup, seeking, or recovery after a buffer-empty event. + + 32. `**cmcd-top-bitrate**` – The highest bitrate rendition that the client can play. + + 33. `**cmcd-version**` – The version of this specification used for interpreting the defined key names and values. If this key is omitted, the version is 1; according to the specification, both the client and server _must_ interpret the version as 1 when this field is omitted. +