You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/logs/app-expression.md
+10-18Lines changed: 10 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: The app expression is used in an Azure Monitor log query to retriev
4
4
ms.topic: conceptual
5
5
author: bwren
6
6
ms.author: bwren
7
-
ms.date: 08/06/2022
7
+
ms.date: 04/20/2023
8
8
9
9
---
10
10
@@ -26,42 +26,34 @@ The `app` expression is used in an Azure Monitor query to retrieve data from a s
26
26
27
27
| Identifier | Description | Example
28
28
|:---|:---|:---|
29
-
| Resource Name | Human readable name of the app (Also known as "component name") | app("fabrikamapp") |
30
-
| Qualified Name | Full name of the app in the form: "subscriptionName/resourceGroup/componentName" | app('AI-Prototype/Fabrikam/fabrikamapp') |
31
-
| ID | GUID of the app | app("988ba129-363e-4415-8fe7-8cbab5447518") |
32
-
| Azure Resource ID | Identifier for the Azure resource |app("/subscriptions/7293b69-db12-44fc-9a66-9c2005c3051d/resourcegroups/Fabrikam/providers/microsoft.insights/components/fabrikamapp") |
29
+
| ID | GUID of the app | app("00000000-0000-0000-0000-000000000000") |
30
+
| Azure Resource ID | Identifier for the Azure resource |app("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/Fabrikam/providers/microsoft.insights/components/fabrikamapp") |
33
31
34
32
35
33
## Notes
36
34
37
35
* You must have read access to the application.
38
-
* Identifying an application by its name assumes that it is unique across all accessible subscriptions. If you have multiple applications with the specified name, the query will fail because of the ambiguity. In this case you must use one of the other identifiers.
36
+
* Identifying an application by its ID or Azure Resource ID is strongly recommended since unique, removes ambiguity, and more performant.
39
37
* Use the related expression [workspace](../logs/workspace-expression.md) to query across Log Analytics workspaces.
Copy file name to clipboardExpand all lines: articles/azure-monitor/logs/query-optimization.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Optimized queries will:
22
22
- Run faster and reduce overall duration of the query execution.
23
23
- Have smaller chance of being throttled or rejected.
24
24
25
-
Pay particular attention to queries that are used for recurrent and bursty usage, such as dashboards, alerts, Azure Logic Apps, and Power BI. The impact of an ineffective query in these cases is substantial.
25
+
Pay particular attention to queries that are used for recurrent and simultaneous usage, such as dashboards, alerts, Azure Logic Apps, and Power BI. The impact of an ineffective query in these cases is substantial.
26
26
27
27
Here's a detailed video walkthrough on optimizing queries.
28
28
@@ -455,7 +455,7 @@ A query that spans more than five workspaces is considered a query that consumes
455
455
456
456
> [!IMPORTANT]
457
457
> - In some multi-workspace scenarios, the CPU and data measurements won't be accurate and will represent the measurement of only a few of the workspaces.
458
-
> - Cross workspace queries having an explicit identifier: workspace ID, or workspace Resource Manager resource ID, consume less resources and are more performant. See [Create a log query across multiple workspaces](./cross-workspace-query.md#identify-workspace-resources)
458
+
> - Cross workspace queries having an explicit identifier: workspace ID, or workspace Azure Resource ID, consume less resources and are more performant. See [Create a log query across multiple workspaces](./cross-workspace-query.md#identify-workspace-resources)
459
459
460
460
## Parallelism
461
461
Azure Monitor Logs uses large clusters of Azure Data Explorer to run queries. These clusters vary in scale and potentially get up to dozens of compute nodes. The system automatically scales the clusters according to workspace placement logic and capacity.
Copy file name to clipboardExpand all lines: articles/azure-monitor/logs/workspace-expression.md
+9-14Lines changed: 9 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: The workspace expression is used in an Azure Monitor log query to r
4
4
ms.topic: conceptual
5
5
author: bwren
6
6
ms.author: bwren
7
-
ms.date: 08/06/2022
7
+
ms.date: 04/20/2023
8
8
9
9
---
10
10
@@ -23,38 +23,33 @@ The `workspace` expression is used in an Azure Monitor query to retrieve data fr
23
23
24
24
| Identifier | Description | Example
25
25
|:---|:---|:---|
26
-
| Resource Name | Human readable name of the workspace (also known as "component name") | workspace("contosoretail") |
27
-
| Qualified Name | Full name of the workspace in the form: "subscriptionName/resourceGroup/componentName" | workspace('Contoso/ContosoResource/ContosoWorkspace') |
28
-
| ID | GUID of the workspace | workspace("b438b3f6-912a-46d5-9db1-b42069242ab4") |
29
-
| Azure Resource ID | Identifier for the Azure resource | workspace("/subscriptions/e4227-645-44e-9c67-3b84b5982/resourcegroups/ContosoAzureHQ/providers/Microsoft.OperationalInsights/workspaces/contosoretail") |
26
+
| ID | GUID of the workspace | workspace("00000000-0000-0000-0000-000000000000") |
27
+
| Azure Resource ID | Identifier for the Azure resource | workspace("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/Contoso/providers/Microsoft.OperationalInsights/workspaces/contosoretail") |
30
28
31
29
32
30
## Notes
33
31
34
32
* You must have read access to the workspace.
33
+
* Identifying a workspace by its ID or Azure Resource ID is strongly recommended since unique, removes ambiguity, and more performant.
35
34
* A related expression is `app` that allows you to query across Application Insights applications.
0 commit comments