logs are not generating in storage account under container

Mayank Jain 260 Reputation points
2023-11-23T19:33:14.27+00:00

Logs are not generating in the storage account and app setting are also proper what is the solution to get logs in the storage account

User's image

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,752 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.
30 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anand Prakash Yadav 6,465 Reputation points Microsoft Vendor
    2023-11-27T13:10:37.1666667+00:00

    Hello Mayank Jain,

    Thank you for posting your query here!

    Can you please try checking $logs from azure storage explorer.

    Ensure that the Delete data check box is selected. Then, set the number of days that you would like log data to be retained. Please check if retention policy is not set or set to 0, which may cause logs not to retain to show.

    User's image

    For reference: Enable and manage Azure Storage Analytics logs (classic) | Microsoft Docs

    It’s also good to note that application logs for a few apps may not provide logs in blob storage and only can be done in file system which is why they use console.log('message') and console.error('message').

    If we want to write Application logs to Azure blob storage, firstly we need to enable Application log and configure blob storage for it on the Azure portal and keep its level to be verbose in some cases.

    Also, if possible, try to disable immutability at the storage account level and to instead set it on the container level.

    Please let us know if you have any further queries. I’m happy to assist you further.


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments