This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 909af0181ed [feat](audit) add audit_plugin_max_insert_stmt_length
(#2427)
909af0181ed is described below
commit 909af0181ed1e9c1fbb3856298ff86f004fb15c9
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Tue Jun 3 11:57:46 2025 +0800
[feat](audit) add audit_plugin_max_insert_stmt_length (#2427)
## Versions
- [x] dev
- [x] 3.0
- [ ] 2.1
- [ ] 2.0
## Languages
- [x] Chinese
- [x] English
## Docs Checklist
- [ ] Checked by AI
- [ ] Test Cases Built
---
docs/admin-manual/audit-plugin.md | 3 +++
.../current/admin-manual/audit-plugin.md | 3 +++
.../version-3.0/admin-manual/audit-plugin.md | 3 +++
versioned_docs/version-3.0/admin-manual/audit-plugin.md | 3 +++
4 files changed, 12 insertions(+)
diff --git a/docs/admin-manual/audit-plugin.md
b/docs/admin-manual/audit-plugin.md
index 4965497f744..78ff21d3cb6 100644
--- a/docs/admin-manual/audit-plugin.md
+++ b/docs/admin-manual/audit-plugin.md
@@ -68,6 +68,9 @@ Audit log variables can be modified using `set [global]
<var_name> = <var_value>
| `audit_plugin_max_batch_bytes` | 50MB | Maximum data volume
per batch for the audit log table. |
| `audit_plugin_max_sql_length` | 4096 | Maximum length of
SQL statements recorded in the audit log table. |
| `audit_plugin_load_timeout` | 600 seconds | Default timeout for
audit log import jobs. |
+| `audit_plugin_max_insert_stmt_length` | Int.MAX | The maximum length limit
for `INSERT` statements. If larger than `audit_plugin_max_sql_length`, the
value of `audit_plugin_max_sql_length` is used. This parameter is supported
since 3.0.7. |
+
+Because some `INSERT INTO VALUES` statements may be too long and submitted
frequently, causing the audit log too large. Therefore, Doris added
`audit_plugin_max_insert_stmt_length` in version 3.0.7 to limit the audit
length of `INSERT` statements separately. This avoids the expansion of the
audit log and ensures that the SQL statements are fully audited.
**FE Configuration Items:**
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/audit-plugin.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/audit-plugin.md
index 08716542f43..6a4177c7d8b 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/audit-plugin.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/audit-plugin.md
@@ -68,6 +68,9 @@ Doris 提供了对于数据库操作的审计能力,可以记录用户对数
| `audit_plugin_max_batch_bytes` | 50MB | 审计日志表每批次最大写入数据量 |
| `audit_plugin_max_sql_length` | 4096 | 审计日志表里记录的语句的最大长度 |
| `audit_plugin_load_timeout` | 600 秒 | 审计日志导入作业的默认超时时间 |
+| `audit_plugin_max_insert_stmt_length` | Int.MAX | 针对 `INSERT` 语句最大长度限制。如果大于
`audit_plugin_max_sql_length`,则使用 `audit_plugin_max_sql_length` 的值。该参数自 3.0.7
支持。 |
+
+因为某些 `INSERT INTO VALUES` 语句可能过长切提交频繁,导致设计日志膨胀。因此,Doris 在 3.0.7 版本新增了
`audit_plugin_max_insert_stmt_length` 用于单独限制 `INSERT` 语句的审计长度。避免审计日志膨胀,同时可以保证
SQL 语句被完整审计。
**FE 配置项:**
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/admin-manual/audit-plugin.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/admin-manual/audit-plugin.md
index 08716542f43..6a4177c7d8b 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/admin-manual/audit-plugin.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/admin-manual/audit-plugin.md
@@ -68,6 +68,9 @@ Doris 提供了对于数据库操作的审计能力,可以记录用户对数
| `audit_plugin_max_batch_bytes` | 50MB | 审计日志表每批次最大写入数据量 |
| `audit_plugin_max_sql_length` | 4096 | 审计日志表里记录的语句的最大长度 |
| `audit_plugin_load_timeout` | 600 秒 | 审计日志导入作业的默认超时时间 |
+| `audit_plugin_max_insert_stmt_length` | Int.MAX | 针对 `INSERT` 语句最大长度限制。如果大于
`audit_plugin_max_sql_length`,则使用 `audit_plugin_max_sql_length` 的值。该参数自 3.0.7
支持。 |
+
+因为某些 `INSERT INTO VALUES` 语句可能过长切提交频繁,导致设计日志膨胀。因此,Doris 在 3.0.7 版本新增了
`audit_plugin_max_insert_stmt_length` 用于单独限制 `INSERT` 语句的审计长度。避免审计日志膨胀,同时可以保证
SQL 语句被完整审计。
**FE 配置项:**
diff --git a/versioned_docs/version-3.0/admin-manual/audit-plugin.md
b/versioned_docs/version-3.0/admin-manual/audit-plugin.md
index 4965497f744..78ff21d3cb6 100644
--- a/versioned_docs/version-3.0/admin-manual/audit-plugin.md
+++ b/versioned_docs/version-3.0/admin-manual/audit-plugin.md
@@ -68,6 +68,9 @@ Audit log variables can be modified using `set [global]
<var_name> = <var_value>
| `audit_plugin_max_batch_bytes` | 50MB | Maximum data volume
per batch for the audit log table. |
| `audit_plugin_max_sql_length` | 4096 | Maximum length of
SQL statements recorded in the audit log table. |
| `audit_plugin_load_timeout` | 600 seconds | Default timeout for
audit log import jobs. |
+| `audit_plugin_max_insert_stmt_length` | Int.MAX | The maximum length limit
for `INSERT` statements. If larger than `audit_plugin_max_sql_length`, the
value of `audit_plugin_max_sql_length` is used. This parameter is supported
since 3.0.7. |
+
+Because some `INSERT INTO VALUES` statements may be too long and submitted
frequently, causing the audit log too large. Therefore, Doris added
`audit_plugin_max_insert_stmt_length` in version 3.0.7 to limit the audit
length of `INSERT` statements separately. This avoids the expansion of the
audit log and ensures that the SQL statements are fully audited.
**FE Configuration Items:**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]