After SQL audit is enabled for RDS for PostgreSQL DB instances, the system records SQL operations and uploads logs every half an hour or when the size of a single record reaches 100 MB. The generated audit logs are stored in OBS.
Only the following versions support SQL audit. If your DB engine version is too low, upgrade it to the latest version by referring to Upgrading a Minor Version.
in the upper left corner and select a region and a project.
in the upper left corner of the page and choose Database > Relational Database Service.Audit logs can be retained from 1 to 3,660 days and are retained for 7 days by default.
After SQL audit is disabled, all audit logs will be deleted immediately and cannot be recovered. Exercise caution when performing this operation.