question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Monitor Query] Support resource-centric logs queries

See original GitHub issue

Library 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AtOMiCNebulacommented, Feb 16, 2022

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. 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found