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/query-packs.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,11 @@ You can view and manage query packs in the Azure portal from the **Log Analytics
27
27
28
28
[](media/query-packs/view-query-pack.png#lightbox)
29
29
30
-
## Use multiple query packs
30
+
## Default query pack
31
31
Azure Monitor automatically creates a query pack called `DefaultQueryPack` in each subscription in a resource group called `LogAnalyticsDefaultResources` when you save your first query. You can save queries to this query pack or create other query packs depending on your requirements.
32
32
33
+
## Use multiple query packs
34
+
33
35
The default query pack is sufficient for most users to save and reuse queries. You might want to create multiple query packs for users in your organization if, for example, you want to load different sets of queries in different Log Analytics sessions and provide different permissions for different collections of queries.
34
36
35
37
When you [create a new query pack](#create-a-query-pack), you can add tags that classify queries based on your business needs. For example, you could tag a query pack to relate it to a particular department in your organization or to severity of issues that the included queries are meant to address. By using tags, you can create different sets of queries intended for different sets of users and different situations.
@@ -45,17 +47,6 @@ To add query packs to your Log Analytics workspace:
45
47
> [!IMPORTANT]
46
48
> You can add up to five query packs to a Log Analytics workspace.
47
49
48
-
## Query properties
49
-
Each query in the query pack has the following properties:
50
-
51
-
| Property | Description |
52
-
|:---|:---|
53
-
| displayName | Display name listed in Log Analytics for each query. |
54
-
| description | Description of the query displayed in Log Analytics for each query. |
55
-
| body | Query written in Kusto Query Language. |
56
-
| related | Related categories, resource types, and solutions for the query. Used for grouping and filtering in Log Analytics by the user to help locate their query. Each query can have up to 10 of each type. Retrieve allowed values from https://api.loganalytics.io/v1/metadata?select=resourceTypes, solutions, and categories. |
57
-
| tags | Other tags used by the user for sorting and filtering in Log Analytics. Each tag will be added to Category, Resource Type, and Solution when you [group and filter queries](queries.md#find-and-filter-queries). |
58
-
59
50
## Create a query pack
60
51
You can create a query pack by using the REST API or from the **Log Analytics query packs** pane in the Azure portal. To open the **Log Analytics query packs** pane in the portal, select **All services** > **Other**.
61
52
@@ -106,6 +97,16 @@ The payload of the request is the JSON that defines one or more queries and the
106
97
}
107
98
```
108
99
100
+
Each query in the query pack has the following properties:
101
+
102
+
| Property | Description |
103
+
|:---|:---|
104
+
|`displayName`| Display name listed in Log Analytics for each query. |
105
+
|`description`| Description of the query displayed in Log Analytics for each query. |
106
+
|`body`| Query written in Kusto Query Language. |
107
+
|`related`| Related categories, resource types, and solutions for the query. Used for grouping and filtering in Log Analytics by the user to help locate their query. Each query can have up to 10 of each type. Retrieve allowed values from https://api.loganalytics.io/v1/metadata?select=resourceTypes, solutions, and categories. |
108
+
|`tags`| Other tags used by the user for sorting and filtering in Log Analytics. Each tag will be added to Category, Resource Type, and Solution when you [group and filter queries](queries.md#find-and-filter-queries). |
109
+
109
110
### Create a request
110
111
Use the following request to create a new query pack by using the REST API. The request should use bearer token authorization. The content type should be `application/json`.
0 commit comments