Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Abdul Majid 7 posts 77 karma points
    Feb 08, 2021 @ 19:08
    Abdul Majid
    0

    Move Umbraco log to Azure storage account

    Hi, I am trying to move the Umbraco log files to Azure storage account. I have install package Serilog.Sinks.AzureBlobStorage and updated the serilog.user.config with the following appSettings:

    <!-- Azure blog storage -->
        <add key="serilog:using:AzureBlobStorage" value="Serilog.Sinks.AzureBlobStorage" />
        <add key="serilog:write-to:AzureBlobStorage.connectionString" value="DefaultEndpointsProtocol=https;AccountName=[AccountName];AccountKey=[KEY];EndpointSuffix=core.windows.net" />
        <add key="serilog:write-to:AzureBlobStorage.formatter" value="Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact" />
        <add key="serilog:write-to:AzureBlobStorage.storageContainerName" value="[ContainerName]"/>
        <add key="serilog:write-to:AzureBlobStorage.storageFileName" value="[FileName.txt]"/>
    

    I can see the logs being generated in the correct storage account and container, but the site does not load... the page is waiting for loading.

    I've tried, moving the appSetting to serilog.config commenting out the default Json log file and still getting the same issue. Has anyone else experience the same issue? BTW I am running the site locally on my machine with IIS. Also run the site in debug mode IIS Express, able to replicate the same issue.

    If I remove the above appSettings, the site loads without any issue. So not sure what I am missing that might cause this issue. Any help would be much apricated.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies