Skip to content

Commit 837005d

Browse files
committed
fixes
1 parent 1e751d7 commit 837005d

File tree

4 files changed

+77
-72
lines changed

4 files changed

+77
-72
lines changed

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ An important part of any Analysis Services solution is monitoring how your serve
2020

2121
## What's logged?
2222

23-
You can select **Engine**, **Service**, and **Metrics** log categories. For a listing of what's logged for each category, see [Analysis Services resource log data](monitor-analysis-services.md#analysis-services-resource-log-data).
23+
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).
2424

2525
## Set up diagnostics logging
2626

@@ -34,9 +34,9 @@ You can select **Engine**, **Service**, and **Metrics** log categories. For a li
3434

3535
* **Name**. Enter a name for the logs to create.
3636

37-
* **Archive to a storage account**. To use this option, you need an existing storage account to connect to. See [Create a storage account](../storage/common/storage-account-create.md). 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.
38-
* **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](../event-hubs/event-hubs-create.md). Then return to this page in the portal to select the Event Hub namespace and policy name.
39-
* **Send to Azure Monitor (Log Analytics workspace)**. To use this option, either use an existing workspace or [create a new workspace](../azure-monitor/logs/quick-create-workspace.md) 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.
37+
* **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.
38+
* **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.
39+
* **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.
4040

4141
* **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.
4242
* **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.
@@ -104,6 +104,15 @@ Logs are typically available within a couple hours of setting up logging. It's u
104104
* Delete logs that you no longer want to keep in your storage account.
105105
* Be sure to set a retention period for so old logs are deleted from your storage account.
106106

107+
## View logs in Log Analytics workspace
108+
109+
To view your diagnostic data, in Log Analytics workspace, open **Logs** from the left menu.
110+
111+
![Screenshot showing log Search options in the Azure portal.](./media/analysis-services-logging/aas-logging-open-log-search.png)
112+
113+
In the query builder, expand **LogManagement** > **AzureDiagnostics**. AzureDiagnostics includes Engine and Service events. Notice a query is created on-the-fly. The EventClass\_s field contains xEvent names, which may look familiar if you've used xEvents for on-premises logging. Click **EventClass\_s** or one of the event names and Log Analytics workspace continues constructing a query. Be sure to save your queries to reuse later.
114+
115+
For more queries you can use with Analysis Services, see [Sample Kusto queries](monitor-analysis-services.md#sample-kusto-queries).
107116

108117
## Turn on logging by using PowerShell
109118

0 commit comments

Comments
 (0)