Hello @Phil Reah ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know how to enable request logging to capture each request made to an Azure Front Door CDN instance.
Azure Front Door and Azure CDN are 2 different products/services in Azure that offer global content delivery with intelligent routing and caching capabilities at the application layer.
Refer: https://learn.microsoft.com/en-us/azure/frontdoor/front-door-cdn-comparison
So, if you are using Azure CDN from Microsoft, then you can enable diagnostic logs by following the below tutorial:
https://learn.microsoft.com/en-us/azure/cdn/monitoring-and-access-log#configuration---azure-portal
If you are using Azure Front Door, then you can enable diagnostic logs by following the below tutorial:
https://learn.microsoft.com/en-us/azure/frontdoor/standard-premium/how-to-logs
You need the Access logs which can be used to identify slow requests, determine error rates, and understand how CDN/Front Door's caching behavior is working for your solution. Information about every request is logged into the access log.
Azure CDN access/raw logs: https://learn.microsoft.com/en-us/azure/cdn/monitoring-and-access-log#raw-logs-properties
Azure Front Door access/raw logs: https://learn.microsoft.com/en-us/azure/frontdoor/front-door-diagnostics?pivots=front-door-standard-premium#access-log
The general process for enabling logging involves the following steps:
- From the Azure portal menu, select All Resources >> Your-CDN-profile or Azure Front Door profile
- Under Monitoring, select Diagnostics settings.
- Select + Add diagnostic setting.
- Under Diagnostic settings, enter a name for the diagnostic setting under Diagnostic settings name.
- Select the AzureCdnAccessLog (in case of CDN) and set the retention in days or select FrontDoorAccessLog (in case of Azure Front Door).
- Select the Destination details. Destination options are:
- Send to Log Analytics. Select the Subscription and Log Analytics workspace.
- Archive to a storage account. Select the Subscription and the Storage Account.
- Stream to an event hub. Select the Subscription, Event hub namespace, Event hub name (optional), and Event hub policy name.
- Select Save.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.