Skip to content

Commit 7e484b1

Browse files
committed
Curate for Monitor duplication
1 parent 806b9c2 commit 7e484b1

File tree

1 file changed

+2
-72
lines changed

1 file changed

+2
-72
lines changed

articles/analysis-services/analysis-services-logging.md

Lines changed: 2 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -24,79 +24,9 @@ This article describes how to set up, view, and manage [Azure Monitor resource l
2424

2525
You can select **Engine**, **Service**, and **Metrics** log categories. For a listing of what's logged for each category, see [Supported resource logs for Microsoft.AnalysisServices/servers](monitor-analysis-services-reference.md#supported-resource-logs-for-microsoftanalysisservicesservers).
2626

27-
## Set up diagnostics logging
27+
## Set up diagnostic settings
2828

29-
### Azure portal
30-
31-
1. In [Azure portal](https://portal.azure.com) > server, click **Diagnostic settings** in the left navigation, and then click **Turn on diagnostics**.
32-
33-
![Screenshot showing Turn on diagnostics in the Azure portal.](./media/analysis-services-logging/aas-logging-turn-on-diagnostics.png)
34-
35-
2. In **Diagnostic settings**, specify the following options:
36-
37-
* **Name**. Enter a name for the logs to create.
38-
39-
* **Archive to a storage account**. To use this option, you need an existing storage account to connect to. See [Create a storage account](/azure/storage/common/storage-account-create). Follow the instructions to create a Resource Manager, general-purpose account, then select your storage account by returning to this page in the portal. It may take a few minutes for newly created storage accounts to appear in the drop-down menu.
40-
* **Stream to an event hub**. To use this option, you need an existing Event Hub namespace and event hub to connect to. To learn more, see [Create an Event Hubs namespace and an event hub using the Azure portal](/azure/event-hubs/event-hubs-create). Then return to this page in the portal to select the Event Hub namespace and policy name.
41-
* **Send to Azure Monitor (Log Analytics workspace)**. To use this option, either use an existing workspace or [create a new workspace](/azure/azure-monitor/logs/quick-create-workspace) resource in the portal. For more information on viewing your logs, see [View logs in Log Analytics workspace](#view-logs-in-log-analytics-workspace) in this article.
42-
43-
* **Engine**. Select this option to log xEvents. If you're archiving to a storage account, you can select the retention period for the resource logs. Logs are autodeleted after the retention period expires.
44-
* **Service**. Select this option to log service level events. If you are archiving to a storage account, you can select the retention period for the resource logs. Logs are autodeleted after the retention period expires.
45-
* **Metrics**. Select this option to store verbose data in [Metrics](analysis-services-monitor.md#server-metrics). If you are archiving to a storage account, you can select the retention period for the resource logs. Logs are autodeleted after the retention period expires.
46-
47-
3. Click **Save**.
48-
49-
If you receive an error that says "Failed to update diagnostics for \<workspace name>. The subscription \<subscription id> is not registered to use microsoft.insights." follow the [Troubleshoot Azure Diagnostics](../azure-monitor/essentials/resource-logs.md) instructions to register the account, then retry this procedure.
50-
51-
If you want to change how your resource logs are saved at any point in the future, you can return to this page to modify settings.
52-
53-
### PowerShell
54-
55-
Here are the basic commands to get you going. If you want step-by-step help on setting up logging to a storage account by using PowerShell, see the tutorial later in this article.
56-
57-
To enable metrics and resource logging by using PowerShell, use the following commands:
58-
59-
- To enable storage of resource logs in a storage account, use this command:
60-
61-
```powershell
62-
Set-AzDiagnosticSetting -ResourceId [your resource id] -StorageAccountId [your storage account id] -Enabled $true
63-
```
64-
65-
The storage account ID is the resource ID for the storage account where you want to send the logs.
66-
67-
- To enable streaming of resource logs to an event hub, use this command:
68-
69-
```powershell
70-
Set-AzDiagnosticSetting -ResourceId [your resource id] -ServiceBusRuleId [your service bus rule id] -Enabled $true
71-
```
72-
73-
The Azure Service Bus rule ID is a string with this format:
74-
75-
```powershell
76-
{service bus resource ID}/authorizationrules/{key name}
77-
```
78-
79-
- To enable sending resource logs to a Log Analytics workspace, use this command:
80-
81-
```powershell
82-
Set-AzDiagnosticSetting -ResourceId [your resource id] -WorkspaceId [resource id of the log analytics workspace] -Enabled $true
83-
```
84-
85-
- You can obtain the resource ID of your Log Analytics workspace by using the following command:
86-
87-
```powershell
88-
(Get-AzOperationalInsightsWorkspace).ResourceId
89-
```
90-
91-
You can combine these parameters to enable multiple output options.
92-
93-
### REST API
94-
95-
Learn how to [change diagnostics settings by using the Azure Monitor REST API](/rest/api/monitor/).
96-
97-
### Resource Manager template
98-
99-
Learn how to [enable diagnostics settings at resource creation by using a Resource Manager template](../azure-monitor/essentials/resource-manager-diagnostic-settings.md).
29+
To learn how to set up diagnostic settings using the Azure portal, Azure CLI, PowerShell, or Azure Resource Manager, see [Create diagnostic settings in Azure Monitor](/azure/azure-monitor/essentials/create-diagnostic-settings).
10030

10131
## Manage your logs
10232

0 commit comments

Comments
 (0)