Setting Audit Log Retention Period

By default, Audit logs are retained for 90 days. You can configure log retention for up to 365 days. You can edit the log retention period in the tenancy details page.

Retention period is a tenancy-level setting. The value of the retention period setting affects all regions and all compartments. You can't set different retention periods for different regions or compartments.

Required IAM Policy

To modify the Audit log retention period, you must be a member of the Administrators group. See The Administrators Group and Policy

Using the Console

To modify the Audit log retention period

Using the API

For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.

Use the following operations to manage the log retention period configuration: