Retrieves audit logs for a specified customer tenant.
The Get-CIPPAuditLogTest function retrieves audit logs for a specified customer tenant based on the log type.
![]()
![]()
Specifies the ID of the customer tenant for which to retrieve audit logs.
![]()
![]()
Specifies the type of audit logs to retrieve. Valid values are 'Audit.Exchange' and 'Audit.AzureActiveDirectory'.
PS > Get-CIPPAuditLogTest -CustomerTenantId "7ced1621-b8f7-4231-868c-bc6b1a2f1778" -LogType "Audit.Exchange"
PS > Get-CIPPAuditLogTest -CustomerTenantId "7ced1621-b8f7-4231-868c-bc6b1a2f1778" -LogType "Audit.AzureActiveDirectory"
PS > Get-CIPPAuditLogTest -CustomerTenantId "test.onmicrosoft.com" -LogType "Audit.Exchange"