Retrieve Azure Storage Account Diagnostics Logs

Troubleshooting Security Issue for Azure Storage Account

Question

You are troubleshooting a security issue for an Azure Storage account.

You enable the diagnostic logs for the storage account.

What should you use to retrieve the diagnostics logs?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B

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

If you have enabled diagnostic logs for your Azure Storage account, you can use Azure Monitor to retrieve and analyze the logs. Therefore, the correct answer to this question is B. Azure Monitor.

Azure Monitor provides a unified platform for collecting, analyzing, and acting on telemetry data from various Azure services, including Azure Storage. You can use Azure Monitor to retrieve and analyze diagnostic logs for your Azure Storage account.

To retrieve the diagnostics logs for your Azure Storage account using Azure Monitor, you need to follow these steps:

  1. Open the Azure portal and navigate to your Azure Storage account.
  2. Under the Monitoring section, click on the Diagnostic settings.
  3. Click on the + Add diagnostic setting button to add a new diagnostic setting.
  4. In the Add diagnostic setting pane, give a name to your diagnostic setting.
  5. Under the logs section, select the types of logs that you want to collect for your Storage account. For example, you can select Blob, Queue, and Table logs.
  6. Under the destination section, select Log Analytics as the destination type and choose the workspace where you want to store the logs.
  7. Click on Save to save the diagnostic setting.

Once you have set up the diagnostic logs, you can use Azure Monitor to retrieve the logs and analyze them. You can use Azure Monitor logs to query and analyze the logs, create custom alerts based on log data, and integrate with other Azure services for automated actions based on log data.

Therefore, the correct answer to this question is B. Azure Monitor.