From bfcf3730a60b36725d6bdf2b7c8350751f04f10d Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Thu, 22 Dec 2022 15:20:39 +0800 Subject: [PATCH 1/3] ES-versions-support-audit-log-writing --- .../5.configurations-and-logs/2.log-management/audit-log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md b/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md index afb8792749b..49c79916cd0 100644 --- a/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md +++ b/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md @@ -32,7 +32,7 @@ NebulaGraph 的审计日志功能可以将 Graph 服务接受到的所有操作 |参数|预设值|说明| |:--|:--|:--| | `enable_audit` | `false` | 是否开启审计日志。 | -| `audit_log_handler` | `file` | 审计日志的存储方案。可选值为`file`(本地文件)和`es`(Elasticsearch)。 | +| `audit_log_handler` | `file` | 审计日志的存储方案。可选值为`file`(本地文件)和`es`(Elasticsearch),支持的 ES 版本为 7.x 和 8.x。| | `audit_log_file` | `./logs/audit/audit.log` | 仅在`audit_log_handler=file`时生效。审计日志的存储路径,支持相对路径或绝对路径。 | | `audit_log_strategy` | `synchronous` | 仅在`audit_log_handler=file`时生效。审计日志的同步方案。可选值为`asynchronous`和`synchronous`。设置为`asynchronous`时,日志事件使用内存缓冲,不会阻塞主线程,但是可能会因为缓存不够而导致日志缺失;设置为`synchronous`时,日志事件每次都刷新并同步到文件中。 | | `audit_log_max_buffer_size` | `1048576` |仅在`audit_log_handler=file`、`audit_log_strategy=asynchronous`时生效。审计日志的缓存大小。单位:字节。 | From 7c5d97b05a6c25936c2129507666a564400d091f Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Thu, 22 Dec 2022 15:29:06 +0800 Subject: [PATCH 2/3] Update audit-log.md --- .../5.configurations-and-logs/2.log-management/audit-log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md b/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md index 49c79916cd0..402f3c7be87 100644 --- a/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md +++ b/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md @@ -32,7 +32,7 @@ NebulaGraph 的审计日志功能可以将 Graph 服务接受到的所有操作 |参数|预设值|说明| |:--|:--|:--| | `enable_audit` | `false` | 是否开启审计日志。 | -| `audit_log_handler` | `file` | 审计日志的存储方案。可选值为`file`(本地文件)和`es`(Elasticsearch),支持的 ES 版本为 7.x 和 8.x。| +| `audit_log_handler` | `file` | 审计日志的存储方案。可选值为`file`(本地文件)和`es`(Elasticsearch),并且支持的 Elasticsearch 版本为 7.x 和 8.x。| | `audit_log_file` | `./logs/audit/audit.log` | 仅在`audit_log_handler=file`时生效。审计日志的存储路径,支持相对路径或绝对路径。 | | `audit_log_strategy` | `synchronous` | 仅在`audit_log_handler=file`时生效。审计日志的同步方案。可选值为`asynchronous`和`synchronous`。设置为`asynchronous`时,日志事件使用内存缓冲,不会阻塞主线程,但是可能会因为缓存不够而导致日志缺失;设置为`synchronous`时,日志事件每次都刷新并同步到文件中。 | | `audit_log_max_buffer_size` | `1048576` |仅在`audit_log_handler=file`、`audit_log_strategy=asynchronous`时生效。审计日志的缓存大小。单位:字节。 | From f7151ac38401bbf5a2fc3fe48543ba4da870c539 Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Thu, 22 Dec 2022 16:15:02 +0800 Subject: [PATCH 3/3] Update audit-log.md --- .../5.configurations-and-logs/2.log-management/audit-log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md b/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md index 402f3c7be87..5f3ed5203c1 100644 --- a/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md +++ b/docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md @@ -32,7 +32,7 @@ NebulaGraph 的审计日志功能可以将 Graph 服务接受到的所有操作 |参数|预设值|说明| |:--|:--|:--| | `enable_audit` | `false` | 是否开启审计日志。 | -| `audit_log_handler` | `file` | 审计日志的存储方案。可选值为`file`(本地文件)和`es`(Elasticsearch),并且支持的 Elasticsearch 版本为 7.x 和 8.x。| +| `audit_log_handler` | `file` | 审计日志的存储方案。可选值为`file`(本地文件)和`es`(Elasticsearch),支持的 Elasticsearch 版本为 7.x 和 8.x。| | `audit_log_file` | `./logs/audit/audit.log` | 仅在`audit_log_handler=file`时生效。审计日志的存储路径,支持相对路径或绝对路径。 | | `audit_log_strategy` | `synchronous` | 仅在`audit_log_handler=file`时生效。审计日志的同步方案。可选值为`asynchronous`和`synchronous`。设置为`asynchronous`时,日志事件使用内存缓冲,不会阻塞主线程,但是可能会因为缓存不够而导致日志缺失;设置为`synchronous`时,日志事件每次都刷新并同步到文件中。 | | `audit_log_max_buffer_size` | `1048576` |仅在`audit_log_handler=file`、`audit_log_strategy=asynchronous`时生效。审计日志的缓存大小。单位:字节。 |