Forum Discussion
How to view logs of blob storage reads and writes?
We want to see what's reading and writing from/to our blob storage, which means 2 classic storage accounts. I've been into the diagnostics setup and logging seems to be active, and I've attached the two storage accounts to a Log Analytics workspace, but can't see anything there. Is this the right way to go about viewing logs?
1 Reply
- Peter_BeckendorfIron Contributor
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