Help Center/ GaussDB/ User Guide/ Logs and Auditing/ Querying Audit Logs of GaussDB Instances on CTS
Updated on 2024-11-11 GMT+08:00

Querying Audit Logs of GaussDB Instances on CTS

With CTS, you can record operations associated with GaussDB for future query, audit, and backtracking.

GaussDB Operations That Can Be Recorded by CTS

Table 1 Operations supported by CTS

Operation

Resource Type

Trace Name

Creating a DB instance or restoring data to a new DB instance

instance

createInstance

Deleting a DB instance

instance

deleteInstance

Changing instance specifications

instance

resizeFlavor

Upgrading the instance version

instance

upgradeVersion

Resetting a password

instance

resetPassword

Rebooting a DB instance

instance

instanceRestart

Binding an EIP

instance

setOrResetPublicIP

Unbinding an EIP

instance

setOrResetPublicIP

Modifying resource tags

instance

modifyTag

Deleting resource tags

instance

deleteTag

Adding resource tags

instance

createTag

Renaming a DB instance

instance

renameInstance

Adding nodes

instance

instanceAction

Deleting task records

workflowTask

deleteTaskRecord

Reducing the number of replicas

instance

reduceReplica

Deleting coordinator nodes

instance

reduceCoordinatorNode

Modifying the recycling policy

backup

setRecyclePolicy

Creating a manual backup

backup

createManualSnapshot

Deleting a manual backup

backup

deleteManualSnapshot

Modifying the backup policy

backup

setBackupPolicy

Restoring a DB instance

backup

restoreInstance

Restoring data of an instance using a backup

instance

restoreInstance

Changing the retention period of automated backups

instance

setBackupPolicy

Creating a parameter group

parameterGroup

createParameterGroup

Applying a parameter group

parameterGroup

applyParameterGroup

Replicating a parameter group

parameterGroup

copyParameterGroup

Deleting a parameter group

parameterGroup

deleteParameterGroup

Resetting a parameter group

parameterGroup

resetParameterGroup

Updating a parameter group

parameterGroup

updateParameterGroup

Changing the port

instance

modifyPort

Creating slow query log download tasks

instance

createSlowLogDownload

Enabling or disabling switchover/failover logs

instance

switchErrorLog

Scaling up storage for shards

instance

resizeVolume

Modifying storage autoscaling policies

instance

autoEnlargeVolume

Deleting shards

instance

reduceShard

Changing standby data nodes to log nodes

instance

switchReplica

Performing a primary/standby switchover

instance

switchShard

Changing the disk type

instance

changeVolumeType

Starting an instance or node

instance

startInstance

Stopping an instance or node

instance

stopInstance

Changing a single-replica instance to an instance with primary and standby nodes

instance

changeDeploymentSolution

Enabling advanced features

instance

updateFeatures

Updating the policy of agency permissions

feature

updateAgency

Querying Audit Logs

You can query GaussDB traces (audit logs) on the CTS console. For details, see Querying Real-Time Traces.