Which libraries or API to use to access/download audit log reports from a SharePoint Online environment.
Is there a way to download the whole audit log from SharePoint online environment?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Microsoft provides information to pull data from the Office 365/Azure AD audit logs. You can find more information at Office 365 Management Activity API reference.
It's important to note that the SharePoint Online site audit logs have been removed from SharePoint Online. There were no APIs to pull data from them.