In this section, we will enable CloudFront standard log and monitor CloudFront metrics on CloudFront Extensions console.
After deployment, you will see two CloudFormation stacks.
Setup monitoring by following steps:
Go to CloudFormation console
Switch View nested on.
Choose the Outputs tab of the nested stack (the stack whose name contains NonRealtimeNestedStack).
You will find the S3 bucket in S3buckettostoreCloudFrontlogs. Copy the S3 bucket name.
Go to CloudFront console, choose the distribution created in CFExtSampleWorkshop stack (refer to DistributionID in the Outputs tab).
In General tab, under Settings, click Edit button.
Under Standard logging, choose On and set the S3 bucket to the bucket that you created in the nested stack (you can find it in S3buckettostoreCloudFrontlogs in the outputs tab of the nested stack, the bucket name contains cloudfrontlog keyword).
Choose Save changes.
Wait until the distribution Last modified field changed from deploying to a specific date time.