Skip to content

Commit 7f2ea1f

Browse files
AI Translate 32-system-history-tables to Simplified-Chinese (#2433)
* [INIT] Start translation to Simplified-Chinese * 🌐 Translate index.md to Simplified-Chinese --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 95cf4d5 commit 7f2ea1f

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.translation-init

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
Translation initialization: 2025-06-11T07:25:14.881198
2-
1+
Translation initialization: 2025-06-12T08:08:42.838600

docs/cn/sql-reference/00-sql-reference/32-system-history-tables/index.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,41 @@
22
title: 系统历史表
33
---
44

5+
import FunctionDescription from '@site/src/components/FunctionDescription';
6+
7+
<FunctionDescription description="引入或更新于:v1.2.752"/>
8+
59
# 系统历史表
610

7-
系统历史表在 `system_history` schema 中持久化存储数据,用于审计、故障排查和合规目的。这些表跟踪查询执行、用户登录和系统日志信息,可通过标准 SQL 进行查询。
11+
系统历史表 (System History Tables) 在 `system_history` 模式中存储持久化数据,用于审计、故障排查和合规性目的。它们跟踪查询执行、用户登录和系统日志,可使用标准 SQL 进行查询。
812

913
## 可用的系统历史表
1014

1115
|| 描述 |
12-
|--------------------------------------------------|---------------------------------------------------------|
13-
| [system_history.log_history](log-history.md) | 存储来自各系统组件的原始日志条目 |
14-
| [system_history.query_history](query-history.md) | 存储查询执行的结构化详情 |
15-
| [system_history.profile_history](profile-history.md) | 存储详细的查询执行详情和统计信息 |
16-
| [system_history.login_history](login-history.md) | 记录用户登录事件 |
16+
|-----------------------------------------------------|-----------------------------------------------------------------|
17+
| [system_history.log_history](log-history.md) | 存储来自不同系统组件的原始日志条目 |
18+
| [system_history.query_history](query-history.md) | 存储查询执行的结构化详细信息 |
19+
| [system_history.profile_history](profile-history.md)| 存储详细的查询执行剖析数据和统计信息 |
20+
| [system_history.login_history](login-history.md) | 记录用户登录事件的相关信息 |
1721

1822
## 启用系统历史表
1923

20-
> **注意****Databend Cloud** 中,系统历史表会自动启用且无需配置。以下内容仅适用于**自托管 Databend**
24+
> **注意** **Databend Cloud** 中,系统历史表自动启用且无需配置即可使用。以下部分仅适用于**自托管 Databend**
2125
22-
在自托管 Databend 中,系统历史表默认禁用。需在 `databend-query.toml` 文件中配置 `[log.history]` 部分来启用
26+
在自托管 Databend 中,系统历史表默认禁用。需在 `databend-query.toml` 文件中配置 `[log.history]` 部分以启用
2327

24-
<details>
25-
<summary>配置示例</summary>
28+
配置示例:
2629

2730
```toml
2831
[log.history]
29-
# 开启历史表功能
32+
# 启用历史表
3033
on = true
3134
level = "INFO"
3235

33-
# 配置各表的保留策略
36+
# 为各表配置保留策略
3437
[[log.history.tables]]
3538
table_name = "log_history"
36-
retention = 168 # 7 天(单位:小时
39+
retention = 168 # 7 天(以小时计
3740

3841
[[log.history.tables]]
3942
table_name = "query_history"
@@ -48,8 +51,6 @@ table_name = "login_history"
4851
retention = 168
4952
```
5053

51-
> **注意**:开启历史日志功能时,`log_history` 表默认启用。
52-
53-
</details>
54+
> **注意:** 启用历史日志记录时,`log_history` 表默认激活。
5455
55-
完整配置选项详见[查询配置:[log.history] 部分](/guides/deploy/references/node-config/query-config#loghistory-section)
56+
有关配置选项的完整说明,请参阅[查询配置:[log.history] 部分](/guides/deploy/references/node-config/query-config#loghistory-section)

0 commit comments

Comments
 (0)