Application gateway logs

Mayank Jain 260 Reputation points
2023-08-09T09:33:00.3533333+00:00

Hey I am not getting previous months of logs in application gateway. What the solution to get previous months logs in application gateway?User's image

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
999 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
38 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,001 Reputation points Microsoft Employee
    2023-08-30T09:47:06.12+00:00

    Hello @Mayank Jain ,

    I understand that you are not getting previous month's logs in application gateway and would like to know how to get them.

    Could you please validate if diagnostic settings are enabled on your application gateway?

    Refer: https://video2.skills-academy.com/en-us/azure/application-gateway/application-gateway-diagnostics#diagnostic-logging

    If yes, then check where these logs are being sent? Log analytics/Storage/Event Hub?

    Then check the retention period of that destination resource.

    Diagnostic Settings Retention feature for storage accounts have been deprecated and should be migrated to Azure Storage lifecycle management as mentioned in the below doc:

    https://video2.skills-academy.com/en-us/azure/azure-monitor/essentials/migrate-to-azure-storage-lifecycle-policy

    But you'll still be able to see the configured retention settings.

    If the logs are being sent to log analytics, then the retention period is set/changed at the workspace/table level:

    https://video2.skills-academy.com/en-us/azure/azure-monitor/logs/data-retention-archive?tabs=portal-1%2Cportal-2#configure-the-default-workspace-retention-policy

    So, check the retention period configured for your log destination.

    If the retention period is more than 30 days, then you should be able to see the previous month's logs.

    Kindly let us know if 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