From 5f4e8686391a703c9ecde401cfa7c2609921f54b Mon Sep 17 00:00:00 2001 From: imbajin Date: Sun, 30 Aug 2026 13:54:24 +0800 Subject: [PATCH] docs(config): document slow-query body limit - 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/` - 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/` -