Azure app services

Srikanth Gorantla 20 Reputation points
2025-01-30T18:34:36.4533333+00:00

What happened if I put zero in Retention Period in the settings shown in attached screenshot? Is this retention period apply to storage account? These logs I can able to see while I have run query in following path webapp-->logs-->Appservice applogs-->run query. What is difference between logs found in blob storage account and logs found by run query in web app? Is The retention period applies to logs displayed in webapp? Screenshot_20250130-235515

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,227 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Silvia Wibowo 5,126 Reputation points Microsoft Employee
    2025-01-30T21:52:05.9+00:00

    Hi @Srikanth Gorantla , for Windows App Service, you can send Application log and

    Web Server log to Azure Storage Blob. More info: Azure App Service Log Overview

    The Filesystem option is for temporary debugging purposes, and turns itself off in 12 hours. The Blob option is for long-term logging, and needs a blob storage container to write logs to. The Blob option also includes additional information in the log messages, such as the ID of the origin VM instance of the log message (InstanceId), thread ID (Tid), and a more granular timestamp (EventTickCount).

    Retention period applies to logs sent to Blob. It's essentially creating a lifecycle management policy for the Blob. Please note that when you configure a policy, it can take up to 24 hours to go into effect. Once the policy is in effect, the time taken for actions to run may vary depending on the size of the storage account and the operations performed.

    If you set retention period = 0, the logs will be deleted when the lifecycle management policy runs on the Blob, the exact time can't be determined.

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    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.