How to export Unified Audit logs as .CSV file using PowerShell or MS Graph?

EnterpriseArchitect 6,041 Reputation points
2023-08-30T12:07:23.5066667+00:00

What is the PowerShell code equivalent for exporting the Unified Audit logs with the specific Workload like in the below screenshot?

User's image

https://compliance.microsoft.com/auditlogsearch?viewid=Async%20Search

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2023-08-30T12:59:12.25+00:00

    With paging the max is 50,000 and you can back 90 days

    Note that Microsoft recommends using the new GUI search now:

    https://learn.microsoft.com/en-us/purview/audit-new-search


1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2023-08-30T12:12:27.91+00:00
    1 person found this answer helpful.

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.