SOLVED
Home

SharePoint online site collections audit log using powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-1235779%22%20slang%3D%22en-US%22%3ESharePoint%20online%20site%20collections%20audit%20log%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1235779%22%20slang%3D%22en-US%22%3E%3CP%3Eusing%20powershell%20can%20we%20get%20site%20collection%20audit%20logs%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1235779%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1235798%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20online%20site%20collections%20audit%20log%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1235798%22%20slang%3D%22en-US%22%3ESite%20Collection%20audit%20logs%20have%20been%20disabled%20in%20SPO%20(and%20were%20not%20accessible%20via%20CSOM%20methods%2C%20so%20no%20PowerShell%20available).%3CBR%20%2F%3E%3CBR%20%2F%3EInstead%2C%20you%20can%20use%20the%20Unified%20Audit%20Log.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fpowershell%2Fmodule%2Fexchange%2Fpolicy-and-compliance-audit%2Fsearch-unifiedauditlog%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fpowershell%2Fmodule%2Fexchange%2Fpolicy-and-compliance-audit%2Fsearch-unifiedauditlog%3C%2FA%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

using powershell can we get site collection audit logs?

2 Replies
Highlighted
Solution
Site Collection audit logs have been disabled in SPO (and were not accessible via CSOM methods, so no PowerShell available).

Instead, you can use the Unified Audit Log.

https://docs.microsoft.com/powershell/module/exchange/policy-and-compliance-audit/search-unifiedaudi...
Highlighted