Retrieving Azure Application Logs Older Than 90 Days

Avinash Dondeti (TATA CONSULTANCY SERVICES LTD) 0 Reputation points Microsoft Vendor
2024-10-07T10:56:02.1866667+00:00

What steps can be taken to access Azure application logs that are older than 90 days without altering the existing retention policy?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,320 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,466 Reputation points MVP
    2024-10-07T16:22:31.05+00:00

    Hello @Avinash Dondeti (TATA CONSULTANCY SERVICES LTD)

    Thanks for using Q and A forum.

    To access Azure that are older than 90 days without changing the existing retention you can follow these steps:

    Step 1: Understand Azure Log Retention

    Azure retains logs for a specified period (default is often 90 days). After this period, logs are typically deleted unless you a longer retention period.

    Step 2: Use Azure Storage or Log Analytics

    If you need logs older than 90 days, consider the following options:

    • Azure Storage: If you have set up diagnostic settings to send logs to Azure Storage, you can access older logs directly from there.
    • Log Analytics: If you have configured your application to send logs to Azure Log Analytics, you may have the option to retain logs for a longer period.

    Step 3: Check Diagnostic Settings if your application is configured to send logs to either Azure Storage or Log Analytics:

    1. Go to the Azure portal.
    2. Navigate to your application resource.
    3. Under "Monitoring," select "Diagnostic settings."
    4. Check if logs are being sent to Azure Storage or Log Analytics.

    Step 4: Query Logs in Logif applicable)

    If your logs are in Log Analytics:

    1. Go to Azure Log Analytics workspace.
    2. Use Query Language (KQL) to query logs. For example:
    AppTraces
    

    Step 5: Access Azure Storage (if applicable)

    If logs are stored in Azure Storage:

    1. Navigate to the Storage Account in the Azure portal.
    2. Go to the "Containers" section.
    3. Locate the container where logs are stored and browse through the logs.

    Final Answer

    To access Azure application logs older, check if logs to Azure Storage or Log Analytics. Use Azure Storage to retrieve logs directly or query logs in Log Analytics if configured


    If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.