Forum Discussion
Alexander_Ceyran
Apr 20, 2020Copper Contributor
How can I get a specific parameter field using KQL ?
Hello everyone, I'd like to make a little table dashboard with the following request OfficeActivity | where OfficeWorkload == "Exchange" | where Operation == "Add-MailboxPermission" Then pr...
- Apr 20, 2020
Alexander_Ceyran you can do something like this. Since Parameters stores a JSON array you can convert it to a dynamic type and then use the mv-expand command to expand each entry in the array into its own row and then filter the rows
OfficeActivity| where OfficeWorkload == "Exchange"| where Operation == "Add-MailboxPermission"| extend test = (todynamic(Parameters))| mv-expand(test)| where test contains "DomainController"
Alexander_Ceyran
Apr 20, 2020Copper Contributor
Thanks GaryBushey, that solves it for me ![]()
GaryBushey
May 20, 2020Bronze Contributor
Alexander_Ceyran Something else I just stumbled across. If you do not want to create a new row per item but rather a new column you can do something like:
| extend tmp = parse_json(Properties)
| extend newResource = tmp.resource
Where "resource" in "tmp.resource" is the name of a field in the Properties column