Overview
audit_log_compression specifies the compression algorithm used for audit logs.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can use theALTER SYSTEM SETstatement to modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | String |
| Default Value | NONE: Compression is not enabled. |
| Value range |
|
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
Archiving is triggered when a file exceeds the size specified by audit_log_rotate_on_size. This parameter controls whether archived files need to be compressed.
Configuration example
Set the compression algorithm for audit logs to ZSTD.
obclient> ALTER SYSTEM SET audit_log_compression='ZSTD';