Forum Discussion
How to view logs of blob storage reads and writes?
Hi trevsk1,
Azure Storage Account Logs are configured in the Storage Account -> Diagnostic Settings (Classic).
As you might mention, no "Log Destination" is defined here, this means, it is not done as for other Azure Services where you might assign a Log Analytics Workspace, Event Hub or Azure Storage Account to fetch those Logs.
The Logs are put into a Logs$ Container within the Storage Account.
To get those Logs to the Log Analytics Workspace, another Step needs to be done, means the Logs need to be ingested with a Powershell Script, could be also done with a Function and on a returning cycle.
Here is the Link to the Script:
https://github.com/Azure/azure-docs-powershell-samples/blob/master/storage/post-storage-logs-to-log-analytics/PostStorageLogs2LogAnalytics.ps1?WT.mc_id=github-azuredevtipsvideo-micrum
Please also find more details on that Topic here:
https://www.youtube.com/watch?v=I9fx5bFMYjQ
Kind Regards, Peter