This is an automated email from the ASF dual-hosted git repository.
imbajin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hugegraph-doc.git
The following commit(s) were added to refs/heads/master by this push:
new d2e61b3b9 docs(config): document slow-query body limit (#465)
d2e61b3b9 is described below
commit d2e61b3b917b82043d8a45eb55069bcb223f970f
Author: imbajin <[email protected]>
AuthorDate: Sun Aug 30 16:42:46 2026 +0800
docs(config): document slow-query body limit (#465)
- add the new option to English and Chinese config examples
- document the byte limit and disable value
- note that recorded query prefixes may contain literals
---
content/cn/docs/config/config-guide.md | 2 ++
content/cn/docs/config/config-option.md | 2 +-
content/en/docs/config/config-guide.md | 2 ++
content/en/docs/config/config-option.md | 2 +-
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/content/cn/docs/config/config-guide.md
b/content/cn/docs/config/config-guide.md
index fed7ba856..973903c5b 100644
--- a/content/cn/docs/config/config-guide.md
+++ b/content/cn/docs/config/config-guide.md
@@ -204,6 +204,8 @@ server.role=master
# slow query log
log.slow_query_threshold=1000
+# bytes of request body recorded as-is (may contain sensitive literals), 0 to
disable
+log.slow_query_body_limit=512
# jvm(in-heap) memory usage monitor, set 1 to disable it
memory_monitor.threshold=0.85
diff --git a/content/cn/docs/config/config-option.md
b/content/cn/docs/config/config-option.md
index 7719ac4b7..97acc329f 100644
--- a/content/cn/docs/config/config-option.md
+++ b/content/cn/docs/config/config-option.md
@@ -53,6 +53,7 @@ weight: 2
| memory_monitor.threshold | 0.85
| The threshold of JVM(in-heap) memory usage monitoring , 1 means
disabling this function.
|
| memory_monitor.period | 2000
| The period in ms of JVM(in-heap) memory usage monitoring.
|
| log.slow_query_threshold | 1000
| Slow query log threshold in milliseconds, 0 means disabled.
|
+| log.slow_query_body_limit | 512
| 慢查询日志记录的请求体最大字节数,0 表示不记录。记录的前缀可能包含敏感的 Gremlin 或 Cypher 字面量。
|
### PD/Meta 配置项 (分布式模式)
@@ -340,4 +341,3 @@ weight: 2
> - `jdbc.url=jdbc:postgresql://localhost:5432/`
</details>
-
diff --git a/content/en/docs/config/config-guide.md
b/content/en/docs/config/config-guide.md
index 8d5c3699b..0bea7a8f3 100644
--- a/content/en/docs/config/config-guide.md
+++ b/content/en/docs/config/config-guide.md
@@ -202,6 +202,8 @@ server.role=master
# slow query log
log.slow_query_threshold=1000
+# bytes of request body recorded as-is (may contain sensitive literals), 0 to
disable
+log.slow_query_body_limit=512
# jvm(in-heap) memory usage monitor, set 1 to disable it
memory_monitor.threshold=0.85
diff --git a/content/en/docs/config/config-option.md
b/content/en/docs/config/config-option.md
index e6a074e28..43343481d 100644
--- a/content/en/docs/config/config-option.md
+++ b/content/en/docs/config/config-option.md
@@ -53,6 +53,7 @@ Corresponding configuration file `rest-server.properties`
| memory_monitor.threshold | 0.85
| The threshold of JVM(in-heap) memory usage monitoring , 1 means
disabling this function.
|
| memory_monitor.period | 2000
| The period in ms of JVM(in-heap) memory usage monitoring.
|
| log.slow_query_threshold | 1000
| Slow query log threshold in milliseconds, 0 means disabled.
|
+| log.slow_query_body_limit | 512
| Maximum bytes of a request body recorded in the slow query log, 0
means disabled. The recorded prefix may contain sensitive Gremlin or Cypher
literals. |
### PD/Meta Config Options (Distributed Mode)
@@ -319,4 +320,3 @@ Other options are consistent with the MySQL backend.
> - `jdbc.url=jdbc:postgresql://localhost:5432/`
</details>
-