Jan 29 2021 02:04 AM
Dear, I need/want to call a (cross) LogAnalytics workspace using a variable. Something like the following:
let var_j="ABCD";
workspace(var_j).WhateverTable
Of course, it works if I do:
workspace("BCD").WhateverTable
Could any of you help me?
Feb 04 2021 07:18 AM
@jjsantanna We can do a cross workspace querying by using workspace name and union KQL statements. Something like this below,
Feb 04 2021 07:24 AM
Hi @printscreen, you didn't understand my question.
I just want to put the name of a log analytics workspace in a variable ("X") and call this variable (not the string) from the workspace() function. For example:
let X = loganalytics_workspacename;
workspace(X).<whatevertable>
*I'm writing some automated report and I would like to iterate over the loganalytics workspaces that we manage.
Feb 04 2021 08:02 AM
@jjsantanna Apologies, I got it wrong then, is this something below which you are looking at, does this helps?
Feb 04 2021 08:05 AM
Aug 27 2021 12:53 PM
Aug 30 2021 12:24 AM