Forum Discussion
mikey365
Mar 14, 2023Brass Contributor
Trying to get the unique values of "newValue" and "oldValue" in AuditLogs using Kusto
My query is: AuditLogs | where Category == "Policy" | where AdditionalDetails contains "conditional access" | project format_datetime(ActivityDateTime, 'MM-dd-yyyy hh:mm '), ActivityDisplayName...
mikey365
Mar 27, 2023Brass Contributor
SuryaJ
Microsoft
Mar 27, 2023The query I gave was just an example. You can translate this to your data. For Example, I used co1.displayname=="conditional" which you can replace with category == "policy". This is not a literal query but the structure should help with your case.
1. Use mv-expand on oldvalue and newvalue
2. Use make_set
3. Use set_difference
1. Use mv-expand on oldvalue and newvalue
2. Use make_set
3. Use set_difference