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
Open the Profile menu () and click Tenancy: <your_tenancy_name>.
The tenancy details are displayed. The Audit Retention Period is displayed under Tenancy Information.
- Click Edit Audit Retention Policy. Enter the number of days you want to retain the audit logs for. The minimum you can set the value to is 90 and the maximum is 365. This value is enforced for all regions and all compartments in the tenancy.
You won't see the new value immediately
It may take several minutes for the new setting to display in the Console.
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: