So, I have a Kusto query
requests
| where customDimensions has'Scope' and customDimensions['Scope'] != 'Unauthenticated' and cloud_RoleName == 'cloud1'
| project x = tostring(customDimensions['x'], y = tostring(customDimensions['y'] ...
i want the split my customDimensions values into 3 jsons.
then project it as
| project json1 = json1, json2 = json2, json3 = json3
but i not able to group/split the customDimensions i tried dynamic, datatable but they dont take variables as inputs
for e.g dynamic_to_json(dynamic({'x': customDimensions['x'] })) throws an error same for the data tables
Error that the above statement gives is it should end with '}' where clearly my syntax is correct. i feel it somehow does not accesses the customDimensions variable inside dynamic or datatable
could anyone please guide me on this..
I want the output as
| json1 | json2 | json3 |
|{...} | {...} | {...} |
all the 3 json's will be created from customDimensions or other columns of the same table;
about customDimensions https://camerondwyer.com/2020/05/26/how-to-use-application-insights-custom-properties-in-azure-monitor-log-kusto-queries/
assume there is any thing in customDimensions like
customDimensions = {x:X, y:Y, a:A, ...}
json1 should have {x, y z}
json2 should have {r, t, p,}
json3 should have {w, m, n}