Incomplete data from Search-UnifiedAuditLog cmdlet for AzureAD record type

Copper Contributor

Hi,

 

From the below cmdlet I got AuditData parameter as an incomplete JSON string.

Search-UnifiedAuditLog -Operations 'Update User.' -RecordType azureactivedirectory -StartDate (Get-Date).AddDays(-30) -EndDate (Get-Date)

I attached the output which i got.

 

AuditData.PNG

Please help me with this case !!! 

 

22 Replies

Hi Ryan

 

I am executing the Search-UnifiedAuditLog power shell command and getting error below.


Which module i need to install in Power Shell for  ‘Search-UnifiedAuditLog ‘  command ?

 

Search-UnifiedAuditLog : The term ‘Search-UnifiedAuditLog’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try again.
At line:11 char:1
+ Search-UnifiedAuditLog -StartDate 19/02/2019 -EndDate 20/02/2019 -Rec …
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Search-UnifiedAuditLog:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

 

Thanks

Moz

7 months passed. The problem still exists.

 

Now, I think, maybe, this is not a bug, but a feature.  :)

Hi guys

2021 and this is still an issue for the AuditData field!

Not acceptable. I have had one of my techs inadvertently remove a fairly large list of sharepoint site exclusions from retention policy. Hoping I could use search-unifiedauditlog to get the sites to add back, but no, truncated!