Log Overview
During database running, a large number of logs are generated, including write-ahead logs (WALs, also called Xlogs) for ensuring database security and reliability and run logs and operation logs for daily database maintenance. If the database is faulty, you can refer to these logs to locate the fault and restore the database.
Log Type
The following table describes details about log types.
| Type | Description |
|---|---|
| System log | Logs generated during database running. They are used to record abnormal process information. |
| Operation log | Logs generated when a client tool (such as gs_guc) is operating databases. |
| Audit log | Logs used to record some of the database user operations after the database audit function is enabled. |
| WAL | Logs used to restore a damaged database. They are also called redo logs. You are advised to routinely back up WALs. |
| Memory log | Logs used to save the memory context statistics when the dynamic memory usage of the database process exceeds 90%. |
Log List
| Log Category | Log Name | Log Path |
|---|---|---|
| System log | gaussdb-Creation time.log | $GAUSSLOG/gs_log |
| system_alarm-Creation time-current.log | $GAUSSLOG/gs_log | |
| gtm-Creation time.log | $GAUSSLOG/gs_log/gtm | |
| cm_agent-Creation time-current.log | $GAUSSLOG/cm/cm_agent | |
| system_alarm-Creation time-current.log | $GAUSSLOG/cm/cm_agent | |
| system_call-current.log | $GAUSSLOG/cm/cm_agent | |
| system_stat-current.log | $GAUSSLOG/cm/cm_agent | |
| cm_server-Creation time-current.log | $GAUSSLOG/cm/cm_server | |
| key_event-Creation_time-current.log | $GAUSSLOG/cm/cm_server | |
| system_alarm-Creation time-current.log | $GAUSSLOG/cm/cm_server | |
| cm_ctl-Creation time-current.log | $GAUSSLOG/cm/cm_ctl | |
| om_monitor-Creation time-current.log | $GAUSSLOG/cm/om_monitor | |
| system_alarm-Creation time-current.log | $GAUSSLOG/cm/om_monitor | |
| Operation log | gs_install-Creation time.log | $GAUSSLOG/om |
| gs_preinstall-Creation time.log | $GAUSSLOG/om | |
| gs_om-Creation time.log | $GAUSSLOG/om | |
| gs_expand-Creation time.log | $GAUSSLOG/om | |
| gs_replace-Creation time.log | $GAUSSLOG/om | |
| gs_local-Creation time.log | $GAUSSLOG/om | |
| checkRunStatus-Creation time.log | $GAUSSLOG/om | |
| JsonToDbclusterInfo-Creation time.log | $GAUSSLOG/om | |
| killall_log-Creation time.log | $GAUSSLOG/om | |
| uploader-Creation time.log | $GAUSSLOG/om | |
| cmd_sender-Creation time.log | $GAUSSLOG/om | |
| gs_initdb-Creation time-current.log | $GAUSSLOG/bin/gs_initdb | |
| gs_guc-Creation time-current.log | $GAUSSLOG/bin/gs_guc | |
| gs_cgroup-Creation time.log | $GAUSSLOG/bin/gs_cgroup | |
| gs_clean-Creation time-current.log | $GAUSSLOG/bin/gs_clean | |
| gs_ctl-Creation time-current.log | $GAUSSLOG/bin/gs_ctl | |
| gs_encrypt-Creation time-current.log | $GAUSSLOG/bin/gs_encrypt | |
| gs_initgtm-Creation time-current.log | $GAUSSLOG/bin/gs_initgtm | |
| gs_obs.run.log | $GAUSSLOG/bin/gs_obs | |
| gtm_ctl-Creation time-current.log | $GAUSSLOG/bin/gtm_ctl | |
| gs_redis-Creation time-current.log | $GAUSSLOG/bin/gs_redis | |
| Audit log | – | The default path is $GAUSSLOG/pg_audit. (If the OM tool is used for cluster deployment, the audit log path is $GAUSSLOG/pg_audit/instance name.) The GUC parameter audit_directory can be used to configure the path. |
| WAL | pg_xlog | Data directory/pg_xlog, for example, /gaussdb/data/data_dn/pg_xlog in a DN instance. /gaussdb/data/data_dn indicates the data directory of the cluster node. |
| Memory log | mem_log-Creation time.log | $GAUSSLOG/mem_log |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot