Log Analytics Legacy Queries now available in the new Query UI

Published Aug 16 2021 06:55 AM 1,221 Views
Microsoft

Intro

Following the introduction of Log Analytics Query Packs we continue to improve our query experience in Log Analytics. 

The team has unified all query discovery experiences to one modern, convenient location.

Query Explorer queries are now named "Legacy Queries" in the UI.

You can now discover and use your Legacy Queries in the Log Analytics Query dialog:

Query dialog showing only Legacy queries.png

 And in the Log Analytics Query sidebar:

Queries sidebar with Legacy queries.png

Our new experiences offer a modern look and feel and enhance various aspects of the experience including better accessibility support and more.

 

Legacy Queries

Legacy Queries are saved in a workspace and only available when using a Log Analytics workspace.

Legacy queries make use of the saved searches API and allow limited, workspace only functionality.

We have unified the discovery and usage experiences so all of your different query types - Example Queries, Query Pack Queries and now - Legacy Queries share the same experience and representation in the Log Analytics UI.

You don't have to do anything, your Query Explorer queries, now named "Legacy Queries"  will be automatically available in the new experiences with 0 work or investment on your end.

We have also maintained support for Query Explorer categories - now named "Legacy Categories" to avoid conflict and confusion with Categories used in Query Packs and Tables.

Note: Favorites is not available in the new experience, please refer to the Query Explorer section of this blog for additional details.

 

The difference between Legacy Queries and Query Pack Queries

It is important to understand the differences between the new Query Packs Queries and the older Legacy Queries.

The team recommends using the feature rich Query Packs queries to save queries, however, if you have prior queries saved as Legacy Queries you can still use them in a new, improved experience.

  Legacy Queries Query Packs Queries Comments
Scope

Used in workspace only, not available in resource centric context

A query may only be used in the workspace it was saved in

Available in all Log Analytics contexts, the same query pack may be used in multiple workspaces and resources.  
Container Log Analytics workspace Query pack A Query Pack is an ARM object and is managed as such
Permissions Workspace permissions Each Query Pack has it's own permissions. Since Query Packs are ARM objects each Query Pack has granular permissions control  
Metadata Each query has a name and a Legacy Category only Rich metadata including description, Resource association and customizable tags when using API Learn more about Query Packs API here
Contextual UI and defaults  NA Queries dialog and sidebar are automatically filtered according to context  

 

Filter and Group by

Our new Queries dialog and sidebar support advanced functionality like search, filter and group by. 

We have extended these capabilities to Legacy Queries.

You can now filter your queries according to their type and Legacy Category - so it's easier and faster to find exactly what you need:

Change filter and group by query dialog.gif

 

 

Query Explorer and roadmap

The old Query Explorer experience is still available for you in the Workspace context. 

As we progress, the team will enhance the Legacy Query save and edit experiences to the new modern look and feel and unify it with the Log Analytics save experience.

Once all experiences are ready, the team plans to retire the old Query Explorer UI in favor of the new upgraded experiences.

 

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-2624234%22%20slang%3D%22en-US%22%3ELog%20Analytics%20Legacy%20Queries%20now%20available%20in%20the%20new%20Query%20UI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2624234%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--383848723%22%20id%3D%22toc-hId--383846709%22%3EIntro%3C%2FH2%3E%0A%3CP%3EFollowing%20the%20introduction%20of%20%3CA%20title%3D%22Log%20Analytics%20Query%20Packs%20blog%22%20href%3D%22http%3A%2F%2Fintroduction%2520%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ELog%20Analytics%20Query%20Packs%3C%2FA%3E%20we%20continue%20to%20improve%20our%20query%20experience%20in%20Log%20Analytics.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20team%20has%20unified%20all%20query%20discovery%20experiences%20to%20one%20modern%2C%20convenient%20location.%3C%2FP%3E%0A%3CP%3EQuery%20Explorer%20queries%20are%20now%20named%20%22Legacy%20Queries%22%20in%20the%20UI.%3C%2FP%3E%0A%3CP%3EYou%20can%20now%20discover%20and%20use%20your%20Legacy%20Queries%20in%20the%20Log%20Analytics%20Query%20dialog%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Query%20dialog%20showing%20only%20Legacy%20queries.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301586i59770A272E5195F7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Query%20dialog%20showing%20only%20Legacy%20queries.png%22%20alt%3D%22Query%20dialog%20showing%20only%20Legacy%20queries.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BAnd%20in%20the%20Log%20Analytics%20Query%20sidebar%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Queries%20sidebar%20with%20Legacy%20queries.png%22%20style%3D%22width%3A%20299px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301592iE24E7901F89410E0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Queries%20sidebar%20with%20Legacy%20queries.png%22%20alt%3D%22Queries%20sidebar%20with%20Legacy%20queries.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOur%20new%20experiences%20offer%20a%20modern%20look%20and%20feel%20and%20enhance%20various%20aspects%20of%20the%20experience%20including%20better%20accessibility%20support%20and%20more.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2103664110%22%20id%3D%22toc-hId-2103666124%22%3ELegacy%20Queries%3C%2FH2%3E%0A%3CP%3ELegacy%20Queries%20are%20saved%20in%20a%20workspace%20and%20only%20available%20when%20using%20a%20Log%20Analytics%20workspace.%3C%2FP%3E%0A%3CP%3ELegacy%20queries%20make%20use%20of%20the%20%3CA%20title%3D%22Saved%20searches%20API%20documentation%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Floganalytics%2Fsaved-searches%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esaved%20searches%20API%3C%2FA%3E%20and%20allow%20limited%2C%20workspace%20only%20functionality.%3C%2FP%3E%0A%3CP%3EWe%20have%20unified%20the%20discovery%20and%20usage%20experiences%20so%20all%20of%20your%20different%20query%20types%20-%20Example%20Queries%2C%20Query%20Pack%20Queries%20and%20now%20-%20Legacy%20Queries%20share%20the%20same%20experience%20and%20representation%20in%20the%20Log%20Analytics%20UI.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EYou%20don't%20have%20to%20do%20anything%2C%3C%2FSTRONG%3E%26nbsp%3Byour%20Query%20Explorer%20queries%2C%20now%20named%20%22Legacy%20Queries%22%26nbsp%3B%20will%20be%20automatically%20available%20in%20the%20new%20experiences%20with%200%20work%20or%20investment%20on%20your%20end.%3C%2FP%3E%0A%3CP%3EWe%20have%20also%20maintained%20support%20for%20Query%20Explorer%20categories%20-%20now%20named%20%22Legacy%20Categories%22%20to%20avoid%20conflict%20and%20confusion%20with%20Categories%20used%20in%20Query%20Packs%20and%20Tables.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%20Favorites%20is%20not%20available%20in%20the%20new%20experience%2C%20please%20refer%20to%20the%20Query%20Explorer%20section%20of%20this%20blog%20for%20additional%20details.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-296209647%22%20id%3D%22toc-hId-296211661%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1511244816%22%20id%3D%22toc-hId--1511242802%22%3EThe%20difference%20between%20Legacy%20Queries%20and%20Query%20Pack%20Queries%3C%2FH2%3E%0A%3CP%3EIt%20is%20important%20to%20understand%20the%20differences%20between%20the%20new%20Query%20Packs%20Queries%20and%20the%20older%20Legacy%20Queries.%3C%2FP%3E%0A%3CP%3EThe%20team%20recommends%20using%20the%20feature%20rich%20Query%20Packs%20queries%20to%20save%20queries%2C%20however%2C%20if%20you%20have%20prior%20queries%20saved%20as%20Legacy%20Queries%20you%20can%20still%20use%20them%20in%20a%20new%2C%20improved%20experience.%3C%2FP%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3ELegacy%20Queries%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3EQuery%20Packs%20Queries%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3EComments%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%3EScope%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3E%3CP%3EUsed%20in%20workspace%20only%2C%20not%20available%20in%20resource%20centric%20context%3C%2FP%3E%0A%3CP%3EA%20query%20may%20only%20be%20used%20in%20the%20workspace%20it%20was%20saved%20in%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3EAvailable%20in%20all%20Log%20Analytics%20contexts%2C%20the%20same%20query%20pack%20may%20be%20used%20in%20multiple%20workspaces%20and%20resources.%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%3EContainer%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3ELog%20Analytics%20workspace%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3EQuery%20pack%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3EA%20Query%20Pack%20is%20an%20ARM%20object%20and%20is%20managed%20as%20such%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%3EPermissions%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3EWorkspace%20permissions%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3EEach%20Query%20Pack%20has%20it's%20own%20permissions.%20Since%20Query%20Packs%20are%20ARM%20objects%20each%20Query%20Pack%20has%20granular%20permissions%20control%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EMetadata%3C%2FTD%3E%0A%3CTD%3EEach%20query%20has%20a%20name%20and%20a%20Legacy%20Category%20only%3C%2FTD%3E%0A%3CTD%3ERich%20metadata%20including%20description%2C%20Resource%20association%20and%20customizable%20tags%20when%20using%20API%3C%2FTD%3E%0A%3CTD%3ELearn%20more%20about%20Query%20Packs%20API%20%3CA%20title%3D%22Log%20Analytics%20Query%20Packs%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%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EContextual%20UI%20and%20defaults%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3ENA%3C%2FTD%3E%0A%3CTD%3EQueries%20dialog%20and%20sidebar%20are%20automatically%20filtered%20according%20to%20context%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CH2%20id%3D%22toc-hId-976268017%22%20id%3D%22toc-hId-976270031%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--831186446%22%20id%3D%22toc-hId--831184432%22%3EFilter%20and%20Group%20by%3C%2FH2%3E%0A%3CP%3EOur%20new%20Queries%20dialog%20and%20sidebar%20support%20advanced%20functionality%20like%20search%2C%20filter%20and%20group%20by.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20have%20extended%20these%20capabilities%20to%20Legacy%20Queries.%3C%2FP%3E%0A%3CP%3EYou%20can%20now%20filter%20your%20queries%20according%20to%20their%20type%20and%20Legacy%20Category%20-%20so%20it's%20easier%20and%20faster%20to%20find%20exactly%20what%20you%20need%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Change%20filter%20and%20group%20by%20query%20dialog.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301593i3B9ADAB2D72A68DB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Change%20filter%20and%20group%20by%20query%20dialog.gif%22%20alt%3D%22Change%20filter%20and%20group%20by%20query%20dialog.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1656326387%22%20id%3D%22toc-hId-1656328401%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--151128076%22%20id%3D%22toc-hId--151126062%22%3EQuery%20Explorer%20and%20roadmap%3C%2FH2%3E%0A%3CP%3EThe%20old%20Query%20Explorer%20experience%20is%20still%20available%20for%20you%20in%20the%20Workspace%20context.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20we%20progress%2C%20the%20team%20will%20enhance%20the%20Legacy%20Query%20save%20and%20edit%20experiences%20to%20the%20new%20modern%20look%20and%20feel%20and%20unify%20it%20with%20the%20Log%20Analytics%20save%20experience.%3C%2FP%3E%0A%3CP%3EOnce%20all%20experiences%20are%20ready%2C%20the%20team%20plans%20to%20retire%20the%20old%20Query%20Explorer%20UI%20in%20favor%20of%20the%20new%20upgraded%20experiences.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1958582539%22%20id%3D%22toc-hId--1958580525%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-left%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%2F301595iF61BB858458B21A8%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%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2624234%22%20slang%3D%22en-US%22%3E%3CP%3ELog%20Analytics%20Legacy%20Queries%20(Query%20Explorer%20queries)%20are%20now%20available%20in%20the%20Log%20Analytics%20Query%20sidebar%20and%20dialog.%3C%2FP%3E%0A%3CP%3EDiscover%20and%20use%20Legacy%20queries%20alongside%20all%20other%20types%20of%20queries%20in%20a%20unified%2C%20flexible%20and%20advanced%20experience.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2624234%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EUpdates%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Aug 08 2021 04:16 AM
Updated by: