Skip to content

Commit 1bdcd39

Browse files
committed
Update query-packs.md
1 parent 6e0d09c commit 1bdcd39

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

articles/azure-monitor/logs/query-packs.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ You can view and manage query packs in the Azure portal from the **Log Analytics
2727

2828
[![Screenshot that shows query packs.](media/query-packs/view-query-pack.png)](media/query-packs/view-query-pack.png#lightbox)
2929

30-
## Use multiple query packs
30+
## Default query pack
3131
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.
3232

33+
## Use multiple query packs
34+
3335
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.
3436

3537
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:
4547
> [!IMPORTANT]
4648
> You can add up to five query packs to a Log Analytics workspace.
4749
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-
5950
## Create a query pack
6051
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**.
6152

@@ -106,6 +97,16 @@ The payload of the request is the JSON that defines one or more queries and the
10697
}
10798
```
10899

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+
109110
### Create a request
110111
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`.
111112

0 commit comments

Comments
 (0)