I have problem how to create API get Audit log and get return value via CSOM?

when i try to this Site collection audit settings for Sp online using CSOM

this is i can't get value it's only save to path.

how to get the value of audit log


SharePoint Online no longer uses Site Collection Auditing and no longer records entries.

You should be using the Unified Audit Log, instead.

  • hi im using sharepoint server on premises. not using online.but it's same? Sep 16 '20 at 1:28

If you want to search the unified audit log via powershell, you will need to use the cmdlet Search-UnifiedAuditLog after connecting to exchange online.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.