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 the Minor Version or Upgrading the Major Version of a DB Instance on the Console.
The pgAudit impact on database performance depends on how many audit logs there are and how often they are generated. More audit logs mean more impact on the database performance. pgAudit can decrease the database performance by about 20%. You need to configure parameters for pgAudit based on your workloads to achieve a balance between audit requirements and database performance.
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.