Open aldy120 opened 4 years ago
log_format main $remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$http_x_amz_cf_id"';
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"${X-Amz-Cf-Id}i\"" combined
Add the x-amz-cf-id into nginx or apache logs. It help you to troubleshoot easily. https://www.slideshare.net/AmazonWebServices/stg206-using-amazon-cloudfront-for-your-websites-apps/19