-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathplugin.conf
More file actions
92 lines (68 loc) · 2.72 KB
/
Copy pathplugin.conf
File metadata and controls
92 lines (68 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
### plugin configuration
# The max size of a batch, default is 50MB
max_batch_size=52428800
# The max interval of batch loaded, default is 60 seconds
max_batch_interval_sec=60
# the max stmt length to be loaded in audit table, default is 1048576
max_stmt_length=1048576
# StarRocks FE host for loading the audit, default is 127.0.0.1:8030
# this should be the host port for stream load
frontend_host_port=127.0.0.1:8030
# If the response time of a query exceed this threshold, it will be recored in audit table as slow_query
qe_slow_log_ms=5000
# the capacity of audit queue, default is 1000
max_queue_size=1000
# Database of the audit table
database=starrocks_audit_db__
# Audit table name, to save the audit data
table=starrocks_audit_tbl__
# StarRocks user. This user must have import permissions for the audit table
user=root
# StarRocks user's password
password=
# StarRocks password encryption key
secret_key=
# Filter conditions when importing audit information
filter=
### ============================================
### Output Routing Configuration
### ============================================
# Output mode: streamload, kafka, dual, fallback
# Default: streamload (backward compatible)
output_mode=streamload
# Primary output handler (for fallback mode)
# primary_output=kafka
# Secondary output handler (for fallback mode)
# secondary_output=streamload
### ============================================
### Kafka Configuration (Optional)
### See plugin.conf.example for detailed configuration
### ============================================
# Enable Kafka output
kafka.enabled=true
# Kafka broker addresses (comma-separated)
kafka.bootstrap.servers=localhost:9092,
# Kafka topic name
kafka.topic=starrocks_audit_logs
# Async mode (recommended for performance)
kafka.async_mode=true
# For more Kafka settings (batch size, compression, security, etc.),
# see plugin.conf.example file
# Timeout for uninstalling the plugin, default is 5000 ms
uninstall_timeout=5000