Database audit logs are configured on the Security Settings page. You can change security settings only when the cluster status is Available and Unbalanced, and Task Information cannot be Creating snapshot, Resizing, Configuring, or Restarting.
By default, Configuration Status is Synchronized, which indicates that the latest database results are displayed.
Table 1 describes the detailed information.
Parameter |
Description |
---|---|
Audit Log Retention Policy |
Specifies the audit log retention policy. Possible values are:
Space priority is preferred. CAUTION:
|
Minimum Retention Period (day) |
This parameter is valid when Audit Log Retention Policy is set to Time priority. The value ranges from 0 to 730 days. The default value is 90 days. |
Table 2 describes the detailed information about the audit items.
Parameter |
Description |
---|---|
Audit Unauthorized Access |
Specifies whether to record unauthorized operations. This parameter is disabled by default. |
Audit DML Execution |
Specifies whether to record INSERT, UPDATE, and DELETE operations on tables. This parameter is disabled by default. |
Audit SELECT Execution |
Specifies whether to record the SELECT operation. This parameter is disabled by default. |
Audit Stored Procedure Execution |
Specifies whether to record operations when executing the stored procedure or user-defined functions. This parameter is disabled by default. |
Audit COPY Execution |
Specifies whether to record the COPY operation. This parameter is disabled by default. |
Audit DDL Execution |
Specifies whether to record the CREATE, DROP, and ALTER operations of specified database objects. DATABASE, SCHEMA, and USER are selected by default. |
Except the audit items listed in Table 2, key audit items in Table 3 are enabled by default on GaussDB(DWS).
Parameter |
Description |
---|---|
Key audit items |
Records successful and failed logins and logout. |
Records database startup, stop, recovery, and switchover. |
|
Records user locking and unlocking. |
|
Records the grants and reclaims of user permissions. |
|
Records the audit function of the SET operation. |
For more information, see Enabling Audit Log Dumps.
Click . The configuration status Applying indicates that the configurations are being saved.
When the status changes to Synchronized, the configurations are saved and take effect.