unable to see azure frontdoor logs in storage account

Vanam Srikanth 0 Reputation points
2024-02-14T06:49:20.19+00:00

Hello, I have connected my storage account to Diagnostic settings. I can see $logs and other containers in the storage account but I don't see any logs there. Also, if I try to query AzureDiagnostics from logs for the last 24 hours or 30 minutes or last 7 days. It shows that there are no logs available I am trying to query logs for my Azure FrontDoor which is successfully connected and running from my browser. Please help

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

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 47,696 Reputation points Microsoft Employee
    2024-02-14T11:50:01.0066667+00:00

    Hello @Vanam Srikanth ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you are unable to see Azure Front Door logs in your storage account which is connected to the Diagnostic settings.

    Since you mentioned that the storage account is connected to diagnostic settings, I believe you have configured Azure Front Door logs in the monitoring section as shown in the below doc:

    https://learn.microsoft.com/en-us/azure/frontdoor/standard-premium/how-to-logs#configure-logs

    If yes, then all logs are stored in block blobs in a container named $logs, which is automatically created in the following format: <service-name>/YYYY/MM/DD/hhmm/<counter>.log

    Refer: https://learn.microsoft.com/en-us/azure/storage/common/storage-analytics-logging#how-logs-are-stored

    https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/resource-logs#send-to-azure-storage

    You can view the log data using a storage explorer like the Microsoft Azure Storage Explorer, or programmatically using the storage client library or PowerShell.

    Refer: https://learn.microsoft.com/en-us/azure/storage/common/manage-storage-analytics-logs?tabs=azure-portal#modify-log-data-retention-period

    Or you can keep the data in place and build an external table on top of it by using Azure Data explorer.

    Refer: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/schema-entities/externaltables

    https://learn.microsoft.com/en-us/azure/data-explorer/data-explorer-overview

    Keep in mind that querying logs directly from storage might not be as convenient as using log analytics tools like Azure Monitor Logs, which provide advanced querying and visualization capabilities tailored for log analysis. If you need more complex querying or real-time analysis, consider importing your logs into Azure Monitor Logs for more sophisticated analysis and visualization.

    https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/resource-logs#send-to-log-analytics-workspace

    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