Forum Discussion

Alexander_Ceyran's avatar
Alexander_Ceyran
Copper Contributor
Apr 20, 2020
Solved

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...
  • GaryBushey's avatar
    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"

Resources