Query across Log Analytics workspaces in Resource-Context mode - "Unknown function: 'workspace'"
Hi,
As detailed in Query data across Log Analytics workspaces there are primarily two ways of performing cross-workspace queries; "Explicitly by specifying the workspace" or "Implicitly by using resource-context queries. "
Is it possible to specify a workspace in resource-context queries? To me it seems this is only possible from within a Log Analytics workspace.
My resource-context queries are getting warnings because they query 8+ workspaces across multiple regions, so I would like to select only one workspace. Ref Optimize log queries in Azure Monitor.
I suppose this is partly due to the customer I'm working with is sending logs to multiple workspaces for some reason, but still.
Example queries im testing:
Sample Query inside Log Analytics - Works
Sample Query in resource-context - Does not work
Here im viewing logs in a resource group as an example, but the result is the same for all resource types.