Frontdoor CDN - can't enable AzureCdnAccessLog (or other request logging)

Phil Reah 20 Reputation points
2024-06-27T10:54:51.3266667+00:00

I'm trying to log each request made to a frontdoor CDN instance - to the CDN, not by the CDN - and understand we need to enable AzureCdnAccessLog as per this article from March this year https://video2.skills-academy.com/en-us/azure/cdn/monitoring-and-access-log

Unfortunately there's no option for AzureCdnAccessLog available.

How can I enable request logging?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
621 questions
0 comments No comments
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,001 Reputation points Microsoft Employee
    2024-06-27T11:46:55.98+00:00

    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://video2.skills-academy.com/en-us/azure/frontdoor/front-door-cdn-comparison

    User's image

    So, if you are using Azure CDN from Microsoft, then you can enable diagnostic logs by following the below tutorial:

    https://video2.skills-academy.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://video2.skills-academy.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://video2.skills-academy.com/en-us/azure/cdn/monitoring-and-access-log#raw-logs-properties

    Azure Front Door access/raw logs: https://video2.skills-academy.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.

    0 comments No comments

0 additional answers

Sort by: Most helpful