Azure Blob Storage - logging stops for some blobs during the day

Yordanka Getsova 0 Reputation points
2024-07-16T13:37:11.6466667+00:00

Since last year at some point of the day, different time and different file size logging stops for the most active blobs and never resumes. What could be the problem. We use NLog for logging

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,744 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Amrinder Singh 5,155 Reputation points Microsoft Employee
    2024-07-16T14:17:36.6833333+00:00

    Hi Yordanka Getsova - Thanks for reaching out.

    Are you referring to the below logging platform for .Net?

    https://github.com/NLog/NLog

    If yes, I am afraid we might be able troubleshoot on the NLog aspect from Azure storage side and might have to go via a Github issue request.

    From the storage side, we have below diagnostic logging, so on best effort basis, you can enable and verify if there was any issue with the storage side request. If not, it shall isolate this for storage and you can then follow the above suggested action plan.

    https://learn.microsoft.com/en-us/azure/storage/blobs/monitor-blob-storage?tabs=azure-portal

    Hope that helps!

    Let me know if there are any further queries/concerns, will be glad to assist.


    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

  2. Nehruji R 5,961 Reputation points Microsoft Vendor
    2024-07-17T05:23:12.76+00:00

    Hello Yordanka Getsova,

    Greetings! Welcome to Microsoft Q&A Platform.

    NLog is a flexible and free logging platform for various .NET platforms, including .NET standard. NLog allows you to write to several targets, such as a database, file, or console. With NLog, you can change the logging configuration on-the-fly.

    Adding to above information. I understand that you are encountering intermittent logging issues with NLog for your most active blobs. Please consider checking below troubleshooting steps to resolve the issue,

    1.Check that the administrator has added or modified your role permissions to the log folder and if that in case it may remove the previous permissions and NLOG will stop logging to your Blob storage.

    However, try using the below setting in Nlog.Config will help you catch such silent failures

    internalLogLevel="Error"

    2.If you’re logging to a remote storage (like Azure Blob Storage), network issues could cause intermittent failures. Ensure that your network connection is stable and that there are no firewall rules blocking access.

    3.Make sure you’re using the latest version of NLog and its extensions. Sometimes, bugs in older versions can cause issues that are resolved in newer releases.

    For more details please check - https://learn.microsoft.com/en-us/azure/data-explorer/nlog-sink?tabs=windows.

    Similar thread for reference - https://stackoverflow.com/questions/77419717/why-nlog-is-unable-to-store-logs-in-azure-blob-storage.

    Hope this answer helps! please accept the answer else, please let us know if you have any further queries. I’m happy to assist you further.


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

    0 comments No comments