[Monitor Query] Support resource-centric logs queries
See original GitHub issueLibrary name
Azure.Monitor.Query
Please describe the feature.
It looks like Azure.Monitor.Query
’s LogsQueryClient
can only query workspaces, but not resources (https://docs.microsoft.com/en-us/azure/azure-monitor/logs/api/azure-resource-queries). I want to set up some API calls to query Key Vault resources, and it looks like if I perform all my own stunts this is possible, but it’d be nice if the SDK supported this too. Would be great for some SDK support here.
Checklist added by @scottaddie:
- Add API surface to support new
/{resourceId}/query
endpoint - Add code example
- Update README (we currently say a workspace ID is a prerequisite, but I don’t think that’s true for the new endpoint)
- Update troubleshooting guide
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Resource-centric log queries with the Azure Monitor ...
With support for both workspace- and resource-centric log queries, the Azure Monitor Query libraries provide more flexibility than ever before.
Read more >Now Available: Resource-centric log queries in the Azure ...
Resource -centric log query support is available in the latest stable release of the Azure Monitor Query client libraries.
Read more >Scott Addie's Post
The Azure Monitor Query client libraries have supported log queries via Log ... Resource-centric log queries with the Azure Monitor Query libraries.
Read more >Azure Monitor Logs
Cribl Edge supports sending data to Azure Monitor Logs. ... the _ResourceId property, and allows the data to be included in resource-centric queries....
Read more >Azure.Monitor.Query 1.2.0
A library for querying Azure Monitor's Logs and Metrics data sources. ... Resource-centric logs query. To query by resource ID, use the LogsQueryClient....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v1.2.0-beta.1 shipped today and includes this feature. See https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/monitor/Azure.Monitor.Query/CHANGELOG.md#120-beta1-2023-05-09.
Thanks! For now, we’re working around this limitation by specifying our own
HttpClientTransport
that rewrites workspace query URLs to target resources instead, but it’ll be nice to have proper SDK support. 😄