Filtering data

You can reference the properties inside your converted JSON object data using standard PowerShell dot-notation.

For example, if we wanted to search for all of the activities that happened inside the https://ms300demo.sharepoint.com/sites/MS300ExternalDemo site, we could use something as simple as the following:

$AuditLog | ? { ($_.AuditData | ConvertFrom-Json).SiteUrl -eq "https://ms300demo.sharepoint.com/sites/MS300ExternalDemo"}

The output of the preceding command can be seen in the following screenshot:

Once you've narrowed down the objects that you want, you can send them to a new CSV for further examination. In environments where you might have implemented ethical walls or information barriers, you may want to use a method to filter audit data before sending it to others so that they can review it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.86.134