Log Analytics Query packs

Published 05-26-2021 06:45 AM 1,221 Views
Microsoft

Introduction

Log Analytics is Azure portals' native way to edit and run log queries over data collected by Azure Monitor Logs and interactively analyze their results.

Log Analytics' language is KQL queries - both simple and complex, KQL queries are used to create meaningful insights from the mountains of valuable data in your logs.

As your queries become more complex and interesting - the need grows to save, reuse and share those quires with your peers and colleagues. 

To address this we have announced in Microsoft Build the introduction of a new way to save, share and manage queries in Log Analytics - Query packs.

 

Log Analytics query packs

A log Analytics query pack is a container for queries, designed to store and manage queries in an effective way.

Query Packs are ARM objects - allowing users to granularly control various aspects of the query pack including permissions, where it is stored, deployment etc.

Query packs exist at the subscription level - meaning your queries stored in a Query Pack are available to your users across Log Analytics resources and workspaces - eliminating silos. Save your query once, and use it everywhere in Log Analytics.

 

Managing your query packs

Query packs are designed as ARM objects. 

As such they allow:

1. Management of permissions at the Query Pack level.

2. Deploy by code - to your subscription or others.

3. Export Query Pack.

4. Manage Query Packs via API.

Log Analytics query packs Azure resource.png

 

API

Query pack operations may also be carried out through our API.

This enables deployment and management of query packs via code.

Using the Query Packs API to programmatically save queries and Query packs opens additional possibilities that are not available in the UI, for example, when using the API you may define additional tags for your queries.

As those advanced capabilities have a profound effect on the user experience of queries in Log Analytics, we have only enabled them using the API - so users and organizations choosing to leverage the more advanced capabilities of Query packs will have consideration and agency when extending their tags and terminology.

To learn more about the query pack API click here.

 

RBAC and access control

As query packs are ARM objects you can control their permissions and access granularly - as you would any other Azure resource.

To control a Query Packs' permissions, go to the IAM menu in the Query Packs' resource menu:

Query pack screen AIM permission management.png

Please note that all queries in the Query Pack will inherit permissions from the Query pack.

To learn more about query pack permissions management click here.  

 

Queries in Log Analytics query packs

Queries stored in Log Analytics Query Packs have many advantages over legacy queries stored in a workspace:

1. Query packs are cross Log Analytics - use your query packs queries everywhere, including resource centric scenarios

2. Metadata - Query packs queries allow for tags and additional metadata making query discovery easier and more intuitive.

3. Permission control - Queries in Query Packs inherit the Query Packs' permissions so you can manage who can see your queries and use them, and who can edit and contribute to the query pack, on a Query Pack basis.

To learn more about query metadata click here.

 

Discovering queries in Log Analytics

Query packs Queries are an integral part of the queries dialog and the queries sidebar.

When you enter Log Analytics, query experiences will load query packs content, right in the queries dialog and sidebar:

Query Dialog with Query packs updated.png

By default, Log Analytics will load the default query pack in the subscription. However, you can change the Query Packs loaded and Log Analytics will remember your choice:

Selecting a query pack in the sidebar.gif

The Log Analytics UI is contextual and will automatically choose the best queries to show in context. For example, when loading queries in a specific resource, the Log Analytics UI will automatically filter your queries by resource type, building on the queries 'resource type' tag - defined when saving the queries to only show queries relevant for the context you are in.
The Log Analytics experience allows you to choose how to organize your queries and how to filter them - to help you get the queries you are looking for - fast:

Resource centric query packs and filter.gif

To learn more about the Query Packs discovery experience - click here.

 

Saving queries to a query pack

Saving a query to a query pack is quick and easy. Use Log Analytics query editor to create your query and click "save"->"Save as Log Analytics Query".

When you save your query you will be asked to provide some metadata for your query:

1. Query name - your query's name - that will be shown in the UI

2. Query description - a short description of your query's functionality

3. Resource type - select the relevant resource types form a list, you may select more then one relevant resource type

4. Category - select the relevant category from a list, you may select more then one category

5. Label - this is a user controlled field. Each query pack has a set of user managed labels. You may choose an existing label or create a new one.

Save a query to query pack save screen.png

 

Once you are done click "Save" - Log Analytics will inform you that saving the query was successful.

Note: as Query Packs are permission controlled - you must have sufficient permissions to save and update queries in a Query Pack.

 

Advanced aspects in saving a query to a Query Pack:

By default, your query will be saved to the Default Query Pack. The default query pack is an automatically generated Query Pack that will be created for you by Log Analytics when a query is first saved to the subscription.

However, Log Analytics allows you to choose what Query Pack you want to use when saving queries. 

To do this, simply remove the check mark from the "save to the default Query Pack" setting under the "path" section of the Query save blade.
You will now be able to choose the path for your query:

Saving to a custom query pack.png

 


Note: Query packs are permission controlled, therefore you must have sufficient permissions to change or add queries to a query pack.

To learn more about saving a query to a Query Pack click here.

 

Editing a query and it's metadata

To edit a query or its metadata - load the query to a blank Log Analytics tab.

Change your query as needed and click "Edit Query Details" under the "Save" menu to access the query metadata edit screen.

Make your adjustments and save. Your query will be updated.

Note: as a query is linked to a specific query pack, you will not be able to change the query pack when updating details. To move a query between query packs, save the query to the new Query Pack and delete the old query.

 

Query Explorer Queries - Legacy Queries

In the long run, Query Packs will replace the old Query Explorer queries.

In the interim, Query Explorer queries will coincide and will continue to work side by side with Query Packs queries.

Next releases will unify the consumption experiences so Query Explorer queries - now named Legacy Queries will be loaded in the same, upgraded UI as all Log Analytics queries.

We encourage you to start transferring your queries to Query Packs and enjoy the advanced functionality they offer.

 

Summary

Query Packs are a huge leap forward for Log Analytics. Query Packs break the silos in the organization and allows query creators and Log Analytics users to share knowledge and build on the accumulated knowledge of the organization - re using queries and assets.

Query Packs also offer the organization an opportunity to create custom experiences in Log Analytics using the API. Your organization can create queries and organize them according to the terminology and taxonomy right for you.

Permission controls and code based deployments make Query Packs perfect for the larger organizations while keeping things simple and easy with strong defaults and one click save to the default Query Pack.

We hope you enjoy Query Packs and urge you to save your first query today.

 

Feedback

We appreciate your feedback! comment on this blog post and let us know what you think of the this feature.

You may also use our in app feedback feature to provide us with additional feedbacks:

Log Analytics feedback.png

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2314721%22%20slang%3D%22en-US%22%3ELog%20Analytics%20Query%20packs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314721%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--469853261%22%20id%3D%22toc-hId--470654926%22%3EIntroduction%3C%2FH2%3E%0A%3CP%3E%3CSPAN%3ELog%20Analytics%20is%20Azure%20portals'%20native%20way%20to%20edit%20and%20run%20log%20queries%20over%20data%20collected%20by%20Azure%20Monitor%20Logs%20and%20interactively%20analyze%20their%20results.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ELog%20Analytics'%20language%20is%20KQL%20queries%20-%20both%20simple%20and%20complex%2C%20KQL%20queries%20are%20used%20to%20create%20meaningful%20insights%20from%20the%20mountains%20of%20valuable%20data%20in%20your%20logs.%3C%2FP%3E%0A%3CP%3EAs%20your%20queries%20become%20more%20complex%20and%20interesting%20-%20the%20need%20grows%20to%20save%2C%20reuse%20and%20share%20those%20quires%20with%20your%20peers%20and%20colleagues.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20address%20this%20we%20have%20%3CA%20title%3D%22Microsoft%20Build%20announcements%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-monitor%2Fwhat-s-new-in-azure-monitor-build-2021%2Fba-p%2F2366286%22%20target%3D%22_blank%22%3Eannounced%20in%20Microsoft%20Build%3C%2FA%3E%20the%20introduction%20of%20a%20new%20way%20to%20save%2C%20share%20and%20manage%20queries%20in%20Log%20Analytics%20-%20Query%20packs.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2017659572%22%20id%3D%22toc-hId-2016857907%22%3ELog%20Analytics%20query%20packs%3C%2FH2%3E%0A%3CP%3EA%20log%20Analytics%20query%20pack%20is%20a%20container%20for%20queries%2C%20designed%20to%20store%20and%20manage%20queries%20in%20an%20effective%20way.%3C%2FP%3E%0A%3CP%3EQuery%20Packs%20are%20ARM%20objects%20-%20allowing%20users%20to%20granularly%20control%20various%20aspects%20of%20the%20query%20pack%20including%20permissions%2C%20where%20it%20is%20stored%2C%20deployment%20etc.%3C%2FP%3E%0A%3CP%3EQuery%20packs%20exist%20at%20the%20subscription%20level%20-%20meaning%20your%20queries%20stored%20in%20a%20Query%20Pack%20are%20available%20to%20your%20users%20across%20Log%20Analytics%20resources%20and%20workspaces%20-%20eliminating%20silos.%20Save%20your%20query%20once%2C%20and%20use%20it%20everywhere%20in%20Log%20Analytics.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1586746250%22%20id%3D%22toc-hId--1587547915%22%3EManaging%20your%20query%20packs%3C%2FH3%3E%0A%3CP%3EQuery%20packs%20are%20designed%20as%20ARM%20objects.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20such%20they%20allow%3A%3C%2FP%3E%0A%3CP%3E1.%20Management%20of%20permissions%20at%20the%20Query%20Pack%20level.%3C%2FP%3E%0A%3CP%3E2.%20Deploy%20by%20code%20-%20to%20your%20subscription%20or%20others.%3C%2FP%3E%0A%3CP%3E3.%20Export%20Query%20Pack.%3C%2FP%3E%0A%3CP%3E4.%20Manage%20Query%20Packs%20via%20API.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Log%20Analytics%20query%20packs%20Azure%20resource.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277438i8651625F531563D9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Log%20Analytics%20query%20packs%20Azure%20resource.png%22%20alt%3D%22Log%20Analytics%20query%20packs%20Azure%20resource.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-900766583%22%20id%3D%22toc-hId-899964918%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--906687880%22%20id%3D%22toc-hId--907489545%22%3EAPI%3C%2FH3%3E%0A%3CP%3EQuery%20pack%20operations%20may%20also%20be%20carried%20out%20through%20our%20API.%3C%2FP%3E%0A%3CP%3EThis%20enables%20deployment%20and%20management%20of%20query%20packs%20via%20code.%3C%2FP%3E%0A%3CP%3EUsing%20the%20Query%20Packs%20API%20to%20programmatically%20save%20queries%20and%20Query%20packs%20opens%20additional%20possibilities%20that%20are%20not%20available%20in%20the%20UI%2C%20for%20example%2C%20when%20using%20the%20API%20you%20may%20define%20additional%20tags%20for%20your%20queries.%3C%2FP%3E%0A%3CP%3EAs%20those%20advanced%20capabilities%20have%20a%20profound%20effect%20on%20the%20user%20experience%20of%20queries%20in%20Log%20Analytics%2C%20we%20have%20only%20enabled%20them%20using%20the%20API%20-%20so%20users%20and%20organizations%20choosing%20to%20leverage%20the%20more%20advanced%20capabilities%20of%20Query%20packs%20will%20have%20consideration%20and%20agency%20when%20extending%20their%20tags%20and%20terminology.%3C%2FP%3E%0A%3CP%3ETo%20learn%20more%20about%20the%20query%20pack%20API%20click%20%3CA%20title%3D%22Query%20pack%20API%20documentation%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fmonitor%2Fquerypacks(preview)%2Fquery%2520packs%2520(preview)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1580824953%22%20id%3D%22toc-hId-1580023288%22%3ERBAC%20and%20access%20control%3C%2FH3%3E%0A%3CP%3EAs%20query%20packs%20are%20ARM%20objects%20you%20can%20control%20their%20permissions%20and%20access%20granularly%20-%20as%20you%20would%20any%20other%20Azure%20resource.%3C%2FP%3E%0A%3CP%3ETo%20control%20a%20Query%20Packs'%20permissions%2C%20go%20to%20the%20IAM%20menu%20in%20the%20Query%20Packs'%20resource%20menu%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Query%20pack%20screen%20AIM%20permission%20management.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277441i55511064954602C4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Query%20pack%20screen%20AIM%20permission%20management.png%22%20alt%3D%22Query%20pack%20screen%20AIM%20permission%20management.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPlease%20note%20that%20all%20queries%20in%20the%20Query%20Pack%20will%20inherit%20permissions%20from%20the%20Query%20pack.%3C%2FP%3E%0A%3CP%3ETo%20learn%20more%20about%20query%20pack%20permissions%20management%20click%20%3CA%20title%3D%22Query%20packs%20permissions%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Flogs%2Fquery-packs%23permissions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1570321849%22%20id%3D%22toc-hId-1569520184%22%3EQueries%20in%20Log%20Analytics%20query%20packs%3C%2FH2%3E%0A%3CP%3EQueries%20stored%20in%20Log%20Analytics%20Query%20Packs%20have%20many%20advantages%20over%20legacy%20queries%20stored%20in%20a%20workspace%3A%3C%2FP%3E%0A%3CP%3E1.%20%3CSTRONG%3EQuery%20packs%20are%20cross%20Log%20Analytics%3C%2FSTRONG%3E%20-%20use%20your%20query%20packs%20queries%20everywhere%2C%20including%20resource%20centric%20scenarios%3C%2FP%3E%0A%3CP%3E2.%20%3CSTRONG%3EMetadata%3C%2FSTRONG%3E%20-%20Query%20packs%20queries%20allow%20for%20tags%20and%20additional%20metadata%20making%20query%20discovery%20easier%20and%20more%20intuitive.%3C%2FP%3E%0A%3CP%3E3.%20%3CSTRONG%3EPermission%20control%3C%2FSTRONG%3E%20-%20Queries%20in%20Query%20Packs%20inherit%20the%20Query%20Packs'%20permissions%20so%20you%20can%20manage%20who%20can%20see%20your%20queries%20and%20use%20them%2C%20and%20who%20can%20edit%20and%20contribute%20to%20the%20query%20pack%2C%20on%20a%20Query%20Pack%20basis.%3C%2FP%3E%0A%3CP%3ETo%20learn%20more%20about%20query%20metadata%20click%20%3CA%20title%3D%22Query%20pack%20payload%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Flogs%2Fquery-packs%23create-payload%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--2034083973%22%20id%3D%22toc-hId--2034885638%22%3EDiscovering%20queries%20in%20Log%20Analytics%3C%2FH3%3E%0A%3CP%3EQuery%20packs%20Queries%20are%20an%20integral%20part%20of%20the%20queries%20dialog%20and%20the%20queries%20sidebar.%3C%2FP%3E%0A%3CP%3EWhen%20you%20enter%20Log%20Analytics%2C%20query%20experiences%20will%20load%20query%20packs%20content%2C%20right%20in%20the%20queries%20dialog%20and%20sidebar%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Query%20Dialog%20with%20Query%20packs%20updated.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277442iAFBB69FDF554D432%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Query%20Dialog%20with%20Query%20packs%20updated.png%22%20alt%3D%22Query%20Dialog%20with%20Query%20packs%20updated.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBy%20default%2C%20Log%20Analytics%20will%20load%20the%20default%20query%20pack%20in%20the%20subscription.%20However%2C%20you%20can%20change%20the%20Query%20Packs%20loaded%20and%20Log%20Analytics%20will%20remember%20your%20choice%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Selecting%20a%20query%20pack%20in%20the%20sidebar.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277446iCE016B40B2A9BD9B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Selecting%20a%20query%20pack%20in%20the%20sidebar.gif%22%20alt%3D%22Selecting%20a%20query%20pack%20in%20the%20sidebar.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20Log%20Analytics%20UI%20is%20contextual%20and%20will%20automatically%20choose%20the%20best%20queries%20to%20show%20in%20context.%20For%20example%2C%20when%20loading%20queries%20in%20a%20specific%20resource%2C%20the%20Log%20Analytics%20UI%20will%20automatically%20filter%20your%20queries%20by%20resource%20type%2C%20building%20on%20the%20queries%20'resource%20type'%20tag%20-%20defined%20when%20saving%20the%20queries%20to%20only%20show%20queries%20relevant%20for%20the%20context%20you%20are%20in.%3CBR%20%2F%3EThe%20Log%20Analytics%20experience%20allows%20you%20to%20choose%20how%20to%20organize%20your%20queries%20and%20how%20to%20filter%20them%20-%20to%20help%20you%20get%20the%20queries%20you%20are%20looking%20for%20-%20fast%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Resource%20centric%20query%20packs%20and%20filter.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277447iF193A3E2BEF73064%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Resource%20centric%20query%20packs%20and%20filter.gif%22%20alt%3D%22Resource%20centric%20query%20packs%20and%20filter.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20learn%20more%20about%20the%20Query%20Packs%20discovery%20experience%20-%20click%20%3CA%20title%3D%22Discovering%20Log%20Analytics%20queries%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Flogs%2Fqueries%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-453428860%22%20id%3D%22toc-hId-452627195%22%3ESaving%20queries%20to%20a%20query%20pack%3C%2FH3%3E%0A%3CP%3ESaving%20a%20query%20to%20a%20query%20pack%20is%20quick%20and%20easy.%20Use%20Log%20Analytics%20query%20editor%20to%20create%20your%20query%20and%20click%20%22save%22-%26gt%3B%22Save%20as%20Log%20Analytics%20Query%22.%3C%2FP%3E%0A%3CP%3EWhen%20you%20save%20your%20query%20you%20will%20be%20asked%20to%20provide%20some%20metadata%20for%20your%20query%3A%3C%2FP%3E%0A%3CP%3E1.%20Query%20name%20-%20your%20query's%20name%20-%20that%20will%20be%20shown%20in%20the%20UI%3C%2FP%3E%0A%3CP%3E2.%20Query%20description%20-%20a%20short%20description%20of%20your%20query's%20functionality%3C%2FP%3E%0A%3CP%3E3.%20Resource%20type%20-%20select%20the%20relevant%20resource%20types%20form%20a%20list%2C%20you%20may%20select%20more%20then%20one%20relevant%20resource%20type%3C%2FP%3E%0A%3CP%3E4.%20Category%20-%20select%20the%20relevant%20category%20from%20a%20list%2C%20you%20may%20select%20more%20then%20one%20category%3C%2FP%3E%0A%3CP%3E5.%20Label%20-%20this%20is%20a%20user%20controlled%20field.%20Each%20query%20pack%20has%20a%20set%20of%20user%20managed%20labels.%20You%20may%20choose%20an%20existing%20label%20or%20create%20a%20new%20one.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Save%20a%20query%20to%20query%20pack%20save%20screen.png%22%20style%3D%22width%3A%20318px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277449iEF85EC4206E883B5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Save%20a%20query%20to%20query%20pack%20save%20screen.png%22%20alt%3D%22Save%20a%20query%20to%20query%20pack%20save%20screen.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20you%20are%20done%20click%20%22Save%22%20-%20Log%20Analytics%20will%20inform%20you%20that%20saving%20the%20query%20was%20successful.%3C%2FP%3E%0A%3CP%3ENote%3A%20as%20Query%20Packs%20are%20permission%20controlled%20-%20you%20must%20have%20sufficient%20permissions%20to%20save%20and%20update%20queries%20in%20a%20Query%20Pack.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1354025603%22%20id%3D%22toc-hId--1354827268%22%3EAdvanced%20aspects%20in%20saving%20a%20query%20to%20a%20Query%20Pack%3A%3C%2FH3%3E%0A%3CP%3EBy%20default%2C%20your%20query%20will%20be%20saved%20to%20the%20Default%20Query%20Pack.%20The%20default%20query%20pack%20is%20an%20automatically%20generated%20Query%20Pack%20that%20will%20be%20created%20for%20you%20by%20Log%20Analytics%20when%20a%20query%20is%20first%20saved%20to%20the%20subscription.%3C%2FP%3E%0A%3CP%3EHowever%2C%20Log%20Analytics%20allows%20you%20to%20choose%20what%20Query%20Pack%20you%20want%20to%20use%20when%20saving%20queries.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20do%20this%2C%20simply%20remove%20the%20check%20mark%20from%20the%20%22save%20to%20the%20default%20Query%20Pack%22%20setting%20under%20the%20%22path%22%20section%20of%20the%20Query%20save%20blade.%3CBR%20%2F%3EYou%20will%20now%20be%20able%20to%20choose%20the%20path%20for%20your%20query%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Saving%20to%20a%20custom%20query%20pack.png%22%20style%3D%22width%3A%20318px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277450i19AC171255B54CBD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Saving%20to%20a%20custom%20query%20pack.png%22%20alt%3D%22Saving%20to%20a%20custom%20query%20pack.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3ENote%3A%20Query%20packs%20are%20permission%20controlled%2C%20therefore%20you%20must%20have%20sufficient%20permissions%20to%20change%20or%20add%20queries%20to%20a%20query%20pack.%3C%2FP%3E%0A%3CP%3ETo%20learn%20more%20about%20saving%20a%20query%20to%20a%20Query%20Pack%20click%20%3CA%20title%3D%22Saving%20a%20query%20to%20Query%20Packs%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Flogs%2Fsave-query%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-438323751%22%20id%3D%22toc-hId-437522086%22%3EEditing%20a%20query%20and%20it's%20metadata%3C%2FH3%3E%0A%3CP%3ETo%20edit%20a%20query%20or%20its%20metadata%20-%20load%20the%20query%20to%20a%20blank%20Log%20Analytics%20tab.%3C%2FP%3E%0A%3CP%3EChange%20your%20query%20as%20needed%20and%20click%20%22Edit%20Query%20Details%22%20under%20the%20%22Save%22%20menu%20to%20access%20the%20query%20metadata%20edit%20screen.%3C%2FP%3E%0A%3CP%3EMake%20your%20adjustments%20and%20save.%20Your%20query%20will%20be%20updated.%3C%2FP%3E%0A%3CP%3ENote%3A%20as%20a%20query%20is%20linked%20to%20a%20specific%20query%20pack%2C%20you%20will%20not%20be%20able%20to%20change%20the%20query%20pack%20when%20updating%20details.%20To%20move%20a%20query%20between%20query%20packs%2C%20save%20the%20query%20to%20the%20new%20Query%20Pack%20and%20delete%20the%20old%20query.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1498213431%22%20id%3D%22toc-hId--1499015096%22%3EQuery%20Explorer%20Queries%20-%20Legacy%20Queries%3C%2FH2%3E%0A%3CP%3EIn%20the%20long%20run%2C%20Query%20Packs%20will%20replace%20the%20old%20Query%20Explorer%20queries.%3C%2FP%3E%0A%3CP%3EIn%20the%20interim%2C%20Query%20Explorer%20queries%20will%20coincide%20and%20will%20continue%20to%20work%20side%20by%20side%20with%20Query%20Packs%20queries.%3C%2FP%3E%0A%3CP%3ENext%20releases%20will%20unify%20the%20consumption%20experiences%20so%20Query%20Explorer%20queries%20-%20now%20named%20Legacy%20Queries%20will%20be%20loaded%20in%20the%20same%2C%20upgraded%20UI%20as%20all%20Log%20Analytics%20queries.%3C%2FP%3E%0A%3CP%3EWe%20encourage%20you%20to%20start%20transferring%20your%20queries%20to%20Query%20Packs%20and%20enjoy%20the%20advanced%20functionality%20they%20offer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-989299402%22%20id%3D%22toc-hId-988497737%22%3ESummary%3C%2FH2%3E%0A%3CP%3EQuery%20Packs%20are%20a%20huge%20leap%20forward%20for%20Log%20Analytics.%20Query%20Packs%20break%20the%20silos%20in%20the%20organization%20and%20allows%20query%20creators%20and%20Log%20Analytics%20users%20to%20share%20knowledge%20and%20build%20on%20the%20accumulated%20knowledge%20of%20the%20organization%20-%20re%20using%20queries%20and%20assets.%3C%2FP%3E%0A%3CP%3EQuery%20Packs%20also%20offer%20the%20organization%20an%20opportunity%20to%20create%20custom%20experiences%20in%20Log%20Analytics%20using%20the%20API.%20Your%20organization%20can%20create%20queries%20and%20organize%20them%20according%20to%20the%20terminology%20and%20taxonomy%20right%20for%20you.%3C%2FP%3E%0A%3CP%3EPermission%20controls%20and%20code%20based%20deployments%20make%20Query%20Packs%20perfect%20for%20the%20larger%20organizations%20while%20keeping%20things%20simple%20and%20easy%20with%20strong%20defaults%20and%20one%20click%20save%20to%20the%20default%20Query%20Pack.%3C%2FP%3E%0A%3CP%3EWe%20hope%20you%20enjoy%20Query%20Packs%20and%20urge%20you%20to%20save%20your%20first%20query%20today.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--818155061%22%20id%3D%22toc-hId--818956726%22%3EFeedback%3C%2FH2%3E%0A%3CP%3EWe%20appreciate%20your%20feedback!%20comment%20on%20this%20blog%20post%20and%20let%20us%20know%20what%20you%20think%20of%20the%20this%20feature.%3C%2FP%3E%0A%3CP%3EYou%20may%20also%20use%20our%20in%20app%20feedback%20feature%20to%20provide%20us%20with%20additional%20feedbacks%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Log%20Analytics%20feedback.png%22%20style%3D%22width%3A%2095px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277451i38EA7DA6C295A84B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Log%20Analytics%20feedback.png%22%20alt%3D%22Log%20Analytics%20feedback.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2314721%22%20slang%3D%22en-US%22%3E%3CP%3EIntroducing%20Log%20Analytics%20query%20packs%20-%20your%20new%20way%20to%20store%20and%20share%20queries%20in%20Log%20Analytics.%3C%2FP%3E%0A%3CP%3EQuery%20packs%20is%20a%20huge%20leap%20forward%20in%20Log%20Analytics'%20ability%20to%20store%2C%20manage%20and%20share%20queries%20-%20allowing%20granular%20control%20of%20queries%20and%20enabling%20cross%20resource%20and%20cross%20subscription%20sharing%20of%20queries.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2314721%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EUpdates%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎May 26 2021 06:45 AM
Updated by: