Skip to content

Commit 73f3c7f

Browse files
committed
add note about slow query in auditlog
1 parent a31843d commit 73f3c7f

8 files changed

Lines changed: 33 additions & 0 deletions

File tree

src/UserGuide/Master/Table/User-Manual/Audit-Log_timecho.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ Edit the `iotdb-system.properties` file to enable audit logging using the follow
7070
| `audit_log_batch_interval_in_ms` | Batch write interval for audit logs | Long | 1000 | Hot Reload |
7171
| `audit_log_batch_max_queue_bytes` | Maximum byte size of the queue for batch processing audit logs. Subsequent write operations will be blocked when this threshold is exceeded. | Long | 268435456 | Hot Reload |
7272

73+
**Instructions for Object Authentication and Slow Operations:**
74+
- When the parameters `auditable_dml_event_type`, `auditable_ddl_event_type`, `auditable_query_event_type`, or `auditable_control_event_type` are set to `OBJECT_AUTHENTICATION`, the corresponding event types will be recorded in the audit log.
75+
- When the parameters `auditable_dml_event_type`, `auditable_ddl_event_type`, `auditable_query_event_type`, or `auditable_control_event_type` are set to `SLOW_OPERATION`, only the corresponding event types whose execution time exceeds the value of the `slow_query_threshold` parameter (default: 3000 ms) will be recorded in the audit log. The value of the `slow_query_threshold` parameter can be configured in the `iotdb-system.properties` file.
76+
77+
7378
## 3. Access Methods
7479

7580
Supports direct reading of audit logs via SQL.

src/UserGuide/Master/Tree/User-Manual/Audit-Log_timecho.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ Edit the `iotdb-system.properties` file to enable audit logging using the follow
7070
| `audit_log_batch_interval_in_ms` | Batch write interval for audit logs | Long | 1000 | Hot Reload |
7171
| `audit_log_batch_max_queue_bytes` | Maximum byte size of the queue for batch processing audit logs. Subsequent write operations will be blocked when this threshold is exceeded. | Long | 268435456 | Hot Reload |
7272

73+
**Instructions for Object Authentication and Slow Operations:**
74+
- When the parameters `auditable_dml_event_type`, `auditable_ddl_event_type`, `auditable_query_event_type`, or `auditable_control_event_type` are set to `OBJECT_AUTHENTICATION`, the corresponding event types will be recorded in the audit log.
75+
- When the parameters `auditable_dml_event_type`, `auditable_ddl_event_type`, `auditable_query_event_type`, or `auditable_control_event_type` are set to `SLOW_OPERATION`, only the corresponding event types whose execution time exceeds the value of the `slow_query_threshold` parameter (default: 3000 ms) will be recorded in the audit log. The value of the `slow_query_threshold` parameter can be configured in the `iotdb-system.properties` file.
76+
7377
## 3. Access Methods
7478

7579
Supports direct reading of audit logs via SQL.

src/UserGuide/latest-Table/User-Manual/Audit-Log_timecho.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ Edit the `iotdb-system.properties` file to enable audit logging using the follow
6969
| `audit_log_batch_interval_in_ms` | Batch write interval for audit logs | Long | 1000 | Hot Reload |
7070
| `audit_log_batch_max_queue_bytes` | Maximum byte size of the queue for batch processing audit logs. Subsequent write operations will be blocked when this threshold is exceeded. | Long | 268435456 | Hot Reload |
7171

72+
**Instructions for Object Authentication and Slow Operations:**
73+
- When the parameters `auditable_dml_event_type`, `auditable_ddl_event_type`, `auditable_query_event_type`, or `auditable_control_event_type` are set to `OBJECT_AUTHENTICATION`, the corresponding event types will be recorded in the audit log.
74+
- When the parameters `auditable_dml_event_type`, `auditable_ddl_event_type`, `auditable_query_event_type`, or `auditable_control_event_type` are set to `SLOW_OPERATION`, only the corresponding event types whose execution time exceeds the value of the `slow_query_threshold` parameter (default: 3000 ms) will be recorded in the audit log. The value of the `slow_query_threshold` parameter can be configured in the `iotdb-system.properties` file.
75+
76+
7277
## 3. Access Methods
7378

7479
Supports direct reading of audit logs via SQL.

src/UserGuide/latest/User-Manual/Audit-Log_timecho.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ Edit the `iotdb-system.properties` file to enable audit logging using the follow
6868
| `audit_log_batch_interval_in_ms` | Batch write interval for audit logs | Long | 1000 | Hot Reload |
6969
| `audit_log_batch_max_queue_bytes` | Maximum byte size of the queue for batch processing audit logs. Subsequent write operations will be blocked when this threshold is exceeded. | Long | 268435456 | Hot Reload |
7070

71+
**Instructions for Object Authentication and Slow Operations:**
72+
- When the parameters `auditable_dml_event_type`, `auditable_ddl_event_type`, `auditable_query_event_type`, or `auditable_control_event_type` are set to `OBJECT_AUTHENTICATION`, the corresponding event types will be recorded in the audit log.
73+
- When the parameters `auditable_dml_event_type`, `auditable_ddl_event_type`, `auditable_query_event_type`, or `auditable_control_event_type` are set to `SLOW_OPERATION`, only the corresponding event types whose execution time exceeds the value of the `slow_query_threshold` parameter (default: 3000 ms) will be recorded in the audit log. The value of the `slow_query_threshold` parameter can be configured in the `iotdb-system.properties` file.
74+
75+
7176
## 3. Access Methods
7277

7378
Supports direct reading of audit logs via SQL.

src/zh/UserGuide/Master/Table/User-Manual/Audit-Log_timecho.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
| `audit_log_batch_interval_in_ms` | 审计日志批量写入的时间间隔 | Long | 1000 | 热加载 |
7171
| `audit_log_batch_max_queue_bytes` | 用于批量处理审计日志的队列最大字节数。当队列大小超过此值时,后续的写入操作将被阻塞。 | Long | 268435456 | 热加载 |
7272

73+
**关于对象鉴权和慢操作的说明:**
74+
*`auditable_dml_event_type``auditable_ddl_event_type``auditable_query_event_type``auditable_control_event_type` 参数值设置为 `OBJECT_AUTHENTICATION`(对象鉴权)时,则对应的事件类型会被记录审计日志。
75+
*`auditable_dml_event_type``auditable_ddl_event_type``auditable_query_event_type``auditable_control_event_type` 参数值设置为 `SLOW_OPERATION`(慢操作),则操作时间大于 `slow_query_threshold` 参数值(默认 3000 ms)的对应事件类型才会被记录审计日志。`slow_query_threshold` 参数值可通过 iotdb-system.properties 文件进行配置。
7376

7477
## 3. 查阅方法
7578

src/zh/UserGuide/Master/Tree/User-Manual/Audit-Log_timecho.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
| `audit_log_batch_interval_in_ms` | 审计日志批量写入的时间间隔 | Long | 1000 | 热加载 |
7171
| `audit_log_batch_max_queue_bytes` | 用于批量处理审计日志的队列最大字节数。当队列大小超过此值时,后续的写入操作将被阻塞。 | Long | 268435456 | 热加载 |
7272

73+
**关于对象鉴权和慢操作的说明:**
74+
*`auditable_dml_event_type``auditable_ddl_event_type``auditable_query_event_type``auditable_control_event_type` 参数值设置为 `OBJECT_AUTHENTICATION`(对象鉴权)时,则对应的事件类型会被记录审计日志。
75+
*`auditable_dml_event_type``auditable_ddl_event_type``auditable_query_event_type``auditable_control_event_type` 参数值设置为 `SLOW_OPERATION`(慢操作),则操作时间大于 `slow_query_threshold` 参数值(默认 3000 ms)的对应事件类型才会被记录审计日志。`slow_query_threshold` 参数值可通过 iotdb-system.properties 文件进行配置。
76+
7377
## 3. 查阅方法
7478

7579
支持通过 SQL 直接阅读、获取审计日志相关信息。

src/zh/UserGuide/latest-Table/User-Manual/Audit-Log_timecho.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
| `audit_log_batch_interval_in_ms` | 审计日志批量写入的时间间隔 | Long | 1000 | 热加载 |
7171
| `audit_log_batch_max_queue_bytes` | 用于批量处理审计日志的队列最大字节数。当队列大小超过此值时,后续的写入操作将被阻塞。 | Long | 268435456 | 热加载 |
7272

73+
**关于对象鉴权和慢操作的说明:**
74+
*`auditable_dml_event_type``auditable_ddl_event_type``auditable_query_event_type``auditable_control_event_type` 参数值设置为 `OBJECT_AUTHENTICATION`(对象鉴权)时,则对应的事件类型会被记录审计日志。
75+
*`auditable_dml_event_type``auditable_ddl_event_type``auditable_query_event_type``auditable_control_event_type` 参数值设置为 `SLOW_OPERATION`(慢操作),则操作时间大于 `slow_query_threshold` 参数值(默认 3000 ms)的对应事件类型才会被记录审计日志。`slow_query_threshold` 参数值可通过 iotdb-system.properties 文件进行配置。
7376

7477
## 3. 查阅方法
7578

src/zh/UserGuide/latest/User-Manual/Audit-Log_timecho.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
| `audit_log_batch_interval_in_ms` | 审计日志批量写入的时间间隔 | Long | 1000 | 热加载 |
7171
| `audit_log_batch_max_queue_bytes` | 用于批量处理审计日志的队列最大字节数。当队列大小超过此值时,后续的写入操作将被阻塞。 | Long | 268435456 | 热加载 |
7272

73+
**关于对象鉴权和慢操作的说明:**
74+
*`auditable_dml_event_type``auditable_ddl_event_type``auditable_query_event_type``auditable_control_event_type` 参数值设置为 `OBJECT_AUTHENTICATION`(对象鉴权)时,则对应的事件类型会被记录审计日志。
75+
*`auditable_dml_event_type``auditable_ddl_event_type``auditable_query_event_type``auditable_control_event_type` 参数值设置为 `SLOW_OPERATION`(慢操作),则操作时间大于 `slow_query_threshold` 参数值(默认 3000 ms)的对应事件类型才会被记录审计日志。`slow_query_threshold` 参数值可通过 iotdb-system.properties 文件进行配置。
76+
7377
## 3. 查阅方法
7478

7579
支持通过 SQL 直接阅读、获取审计日志相关信息。

0 commit comments

Comments
 (0)