Apr 20 2020 06:23 AM
Hello everyone,
I'd like to make a little table dashboard with the following request
OfficeActivity
| where OfficeWorkload == "Exchange"
| where Operation == "Add-MailboxPermission"
Then project the columns TimeGenerated, Parameters.Value (for the Identity field) and Parameters.Value (for the AccessRight field), and UserId.
I can't get to the parameters part because sometimes the fields I'm interested in are in the table in position 0 or 1 or 2 or 3 (constantly changing for same log type).
Do you have any solution to get the specific parameter field (example the Value when Name = Identity) for every log ?
Thanks a lot
Alexander
Apr 20 2020 08:10 AM
If you move your mouse in front of the value you want, you see 3 dots, if you then click on the 3 dots you have the options: Include/Exclude/Extend Column.
If you select extend column, the following will be added to your query:
Apr 20 2020 01:02 PM
Solution@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
Apr 20 2020 02:16 PM
Thanks @Gary Bushey, that solves it for me
May 20 2020 03:56 AM
@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:
Mar 07 2021 11:01 PM
Mar 08 2021 07:14 AM
@ArjunPrasad Take a look at the parse operator. https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/parseoperator