sharepoint audit logs

Roger Roger 6,406 Reputation points
2020-09-21T16:03:25.29+00:00

Hi All
i have an sharepoint site associated with office365 unified group, the site was deleted by some user, how can i check from the logs who has deleted this site.
i have used the below syntax from office 365 but i dont see any logs.
Search-AdminAuditLog -ExternalAccess $false -StartDate 09/20/2020 -EndDate 09/21/2020 | Export-Csv -Path C:\auditlogs.csv -NoTypeInformation

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,376 questions
Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
649 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,836 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,584 questions
0 comments No comments
{count} votes

Accepted answer
  1. JoyZ 18,071 Reputation points
    2020-09-22T05:58:36.077+00:00

    Hi @Roger Roger ,

    AdminAuditLog is available in on-premises Exchange and in the cloud-based service, not for SharePoint online.

    Use the Search-UnifiedAuditLog cmdlet to search the unified audit log from SharePoint Online.

    Simple test for your reference:

    $Audit=Search-UnifiedAuditLog -StartDate 9/1/2020 -EndDate 9/22/2020  -Operations SiteDeleted  
    $ConvertAudit = $Audit | Select-Object -ExpandProperty AuditData | ConvertFrom-Json  
    $ConvertAudit | Select-Object CreationTime,UserId,Operation,Workload,ObjectID,SiteUrl,SourceFileName,ClientIP,UserAgent  
    

    Result:

    26344-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    More information:

    https://learn.microsoft.com/en-us/powershell/module/exchange/search-unifiedauditlog?view=exchange-ps

    https://www.easy365manager.com/office-365-forensics-using-powershell-and-search-unifiedauditlog/

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vasil Michev 108.2K Reputation points MVP
    2020-09-21T17:36:35.707+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.