Gets audit logs from CIPP.
The Get-CIPPAuditLog function retrieves audit logs from CIPP with various filtering options. It allows filtering by tenant, specific log ID, date range, or relative time period.
![]()
![]()
The ID of the customer tenant to get logs from. Use 'AllTenants' for logs across all tenants.
![]()
![]()
A timespan object specifying a relative time period to retrieve logs from. Will be converted to format: Xd (days), Xh (hours), or Xm (minutes).
PS > Get-CIPPAuditLog -CustomerTenantID "12345678-1234-1234-1234-1234567890AB"
PS > Get-CIPPAuditLog -CustomerTenantID "AllTenants" -RelativeTime ([TimeSpan]::FromHours(24))
PS > Get-CIPPAuditLog -CustomerTenantID "12345678-1234-1234-1234-1234567890AB" -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date)
PS > Get-CIPPAuditLog -LogID "abc123" -CustomerTenantID "tenant1" -RelativeTime ([TimeSpan]::FromDays(1))