This would lead to recursive logs in which a log entry describes the writing of another log entry. You can't send logs to the same storage account that you are monitoring with this setting. For specific pricing, see the Platform Logs section of the Azure Monitor pricing page. If you choose to archive your logs to a storage account, you'll pay for the volume of logs that are sent to the storage account. Set your active subscription to subscription of the storage account that you want to enable logging for. Open a Windows PowerShell command window, and sign in to your Azure subscription by using the Connect-AzAccount command. Check the Azure Monitor partner integrations documentation for details. Configuration options will vary by partner. You must first install a partner integration into your subscription. You can also send platform metrics and logs to certain Azure Monitor partners. To learn how, see Change the data retention period. However, you can manage the data retention period of Log Analytics at the workspace level or even specify different retention settings by data type. You'll need access to an existing log analytics workspace, or you'll need to create one before you complete this step. Select the Send to Log Analytics checkbox, select a log analytics workspace, and then click the Save button.In the Select an event hub pane, choose the namespace, name, and policy name of the event hub that you want to stream your logs to.Ĭlick the OK button, and then click the Save button. Select the Stream to an event hub checkbox, and then click the Configure button. You'll need access to an existing event hub, or you'll need to create one before you complete this step. If you choose to stream your logs to an event hub, you'll pay for the volume of logs that are sent to the event hub. For general guidance about how to create a diagnostic setting, see Create diagnostic setting to collect platform logs and metrics in Azure.īefore you choose a storage account as the export destination, see Archive Azure resource logs to understand prerequisites on the storage account. This section provides steps specific to Azure Storage. This section shows you how to create a diagnostic setting by using the Azure portal, PowerShell, and the Azure CLI. To get the list of SMB and REST operations that are logged, see Storage logged operations and status messages and Azure Files monitoring data reference. Then, specify one of the following categories of operations for which you want to collect logs. When you create the setting, choose file as the type of storage that you want to enable logs for. To collect resource logs, you must create a diagnostic setting. Platform metrics and the Activity log are collected automatically, but can be routed to other locations by using a diagnostic setting. If you want to use metrics or logs on a classic storage account, you need to migrate to an Azure Resource Manager storage account. Azure Monitor doesn't support classic storage accounts. Metrics and logs in Azure Monitor support only Azure Resource Manager storage accounts. See Azure File monitoring data reference for detailed information on the metrics and logs metrics created by Azure Files. Monitoring dataĪzure Files collects the same kinds of monitoring data as other Azure resources, which are described in Monitoring data from Azure resources. Examples show how to configure data collection and analyze this data with Azure tools. The following sections build on this article by describing the specific data gathered from Azure Files. Standard tools in Azure for analyzing and alerting on monitoring data.Start with the article Monitoring Azure resources with Azure Monitor, which describes the following: Azure Monitor provides a complete set of features to monitor your Azure resources and resources in other clouds and on-premises. What is Azure Monitor?Īzure Files creates monitoring data by using Azure Monitor, which is a full stack monitoring service in Azure. You can enable additional types of data collection with some configuration. Some of this data is collected automatically and is available for analysis as soon as you create the resource. This information is useful, but only a small amount of the monitoring data is available. The Overview page in the Azure portal for each Azure Files resource includes a brief view of the resource usage, such as requests and hourly billing. Premium file shares (FileStorage), LRS/ZRS This article describes the monitoring data that's generated by Azure Files and how you can use the features of Azure Monitor to analyze alerts on this data. When you have critical applications and business processes that rely on Azure resources, you want to monitor those resources for their availability, performance, and operation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |