Articles → MICROSOFT AZURE → Query Storage Account Logs In Azure Log Analytics

Query Storage Account Logs In Azure Log Analytics






Steps




  1. Create a log analytics workspace
  2. Create a storage account
  3. Enable logging for storage account
  4. Upload the file in storage account
  5. Query log analytics



Create A Log Analytics Workspace




Picture showing the log analytics workspace created in Azure portal
Click to Enlarge


Create A Storage Account






Picture showing the storage account created in Azure portal
Click to Enlarge


Enable Logging For Storage Account




Picture showing the Diagnostic settings menu inside the storage account
Click to Enlarge





Picture showing the diagnostic settings in Azure portal
Click to Enlarge



Picture showing the screen for adding the diagnostic setting
Click to Enlarge




Upload The File In Storage Account




Picture showing the screen to upload a file in the storage account
Click to Enlarge


Query Log Analytics




StorageBlobLogs




Picture showing querying the storage account using StorageBlobLogs query
Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Thursday, August 18, 2022

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250