แก้ไข

แชร์ผ่าน


Storage Analytics

Azure Storage Analytics performs logging for a storage account. You can use this data to trace requests, analyze usage trends, and diagnose issues with your storage account.

Note

Storage Analytics supports only logs. Storage Analytics metrics are retired. See Transition to metrics in Azure Monitor. While Storage Analytics logs are still supported, we recommend that you use Azure Storage logs in Azure Monitor instead of Storage Analytics logs. To learn more, see any of the following articles:

To use Storage Analytics, you must enable it individually for each service you want to monitor. You can enable it from the Azure portal. For details, see Monitor a storage account in the Azure portal. You can also enable Storage Analytics programmatically via the REST API or the client library. Use the Set Blob Service Properties, Set Queue Service Properties, Set Table Service Properties, and Set File Service Properties operations to enable Storage Analytics for each service.

The aggregated log data is stored in a well-known blob, which may be accessed using the Blob service and Table service APIs.

Storage Analytics has a 20 TB limit on the amount of stored data that is independent of the total limit for your storage account. For more information about storage account limits, see Scalability and performance targets for standard storage accounts.

For an in-depth guide on using Storage Analytics and other tools to identify, diagnose, and troubleshoot Azure Storage-related issues, see Monitor, diagnose, and troubleshoot Microsoft Azure Storage.

Billing for Storage Analytics

The amount of storage used by logs data is billable. You're also billed for requests to create blobs for logging.

If you have configured a data retention policy, you can reduce the spending by deleting old log data. For more information about retention policies, see Setting a Storage Analytics Data Retention Policy.

Understanding billable requests

Every request made to an account's storage service is either billable or non-billable. Storage Analytics logs each individual request made to a service, including a status message that indicates how the request was handled. See Understanding Azure Storage Billing - Bandwidth, Transactions, and Capacity.

When looking at Storage Analytics data, you can use the tables in the Storage Analytics Logged Operations and Status Messages topic to determine what requests are billable. Then you can compare your log data to the status messages to see if you were charged for a particular request. You can also use the tables in the previous topic to investigate availability for a storage service or individual API operation.

Next steps