cloudfront access log to s3 | how to pass pass the user defined headers

0

Hi All,

I have set up a CloudFront access log to s3, but I am trying to log user-defined headers. is this possible to log the user-defined custom headers as a CloudFront access log into the s3?

for example, if I pass user-defined headers like transaction id and device id, then it be visible to the CloudFront enables s3 log file.

kindly suggest. As I tried hards. the below but no success

  1. allow the custom header from the behavior
  2. allow the other predefined headers just to see is these can be seen in s3 or not.
  3. and many more. but still no success.

kindly suggest will appreciate your cooperation

1 Answer
-1

Request Header is not stored in the CloudFront access logs as described here. I would recommend you to log your request header in your web server log if possible.

Raymond
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions