Skip to content

Commit 196fb2d

Browse files
committed
docs: Add l7_procotol oracle and fix port_range regex
1 parent ccd3f40 commit 196fb2d

2 files changed

Lines changed: 24 additions & 17 deletions

File tree

server/agent_config/custom_app.example.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ biz_protocol_policies:
22
- biz_protocol: "your_protocol_name"
33
pre_filter:
44
port_list: 1-65535
5-
l7_protocol: Custom
5+
l7_protocol: custom
66
request_characters:
77
- character:
88
- match_keyword: abc
@@ -32,21 +32,29 @@ biz_field:
3232
default: value3
3333
policies:
3434
- policy_name: "my_policy"
35-
l7_protocol: HTTP
35+
l7_protocol: http
3636
biz_protocol: "my_protocol"
3737
filters:
3838
traffic_direction: both
3939
port_list: 1-65535
4040
feature_string: ""
4141
raw:
42-
save_request:
42+
save_request_header:
4343
enabled: false
4444
output:
45-
attribute_name: request
46-
save_response:
45+
attribute_name: request_header
46+
save_request_payload:
4747
enabled: false
4848
output:
49-
attribute_name: response
49+
attribute_name: request_payload
50+
save_response_header:
51+
enabled: false
52+
output:
53+
attribute_name: response_header
54+
save_response_payload:
55+
enabled: false
56+
output:
57+
attribute_name: response_payload
5058
fields:
5159
- name: "tlv_field"
5260
type: "payload_tlv_value"
@@ -162,13 +170,6 @@ biz_field:
162170
attribute_name: "xyz"
163171
rewrite_native_tag:
164172
name: version
165-
pre_condition:
166-
blacklist:
167-
- '= xxx'
168-
- '!= xxx'
169-
whitelist:
170-
- ': xxx'
171-
- '!: xxx'
172173
priority: 0
173174
compound_fields:
174175
- name: "my_compound_field"

server/agent_config/custom_app.schema.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,23 @@ $defs:
7676
- http2
7777
- dubbo
7878
- mysql
79+
- oracle
7980
- redis
8081
- custom
8182
enum@en:
8283
- HTTP
8384
- HTTP2
8485
- Dubbo
8586
- MySQL
87+
- Oracle
8688
- Redis
8789
- Custom
8890
enum@ch:
8991
- HTTP
9092
- HTTP2
9193
- Dubbo
9294
- MySQL
95+
- Oracle
9396
- Redis
9497
- 自定义协议
9598
title@en: Filter Protocol Name
@@ -210,20 +213,23 @@ $defs:
210213
- http2
211214
- dubbo
212215
- mysql
216+
- oracle
213217
- redis
214218
- custom
215219
enum@en:
216220
- HTTP
217221
- HTTP2
218222
- Dubbo
219223
- MySQL
224+
- Oracle
220225
- Redis
221226
- Custom
222227
enum@ch:
223228
- HTTP
224229
- HTTP2
225230
- Dubbo
226231
- MySQL
232+
- Oracle
227233
- Redis
228234
- 自定义协议
229235
title@en: Protocol Name
@@ -390,7 +396,7 @@ $defs:
390396
- `Dubbo Header Value` (`dubbo_header_value`): Extra field from the Attachments which payload was encoded with Dubbo protocol.
391397
- `Dubbo Payload Map String Value` (`dubbo_payload_map_string_value`): Extra field from key-value format which payload was encoded with Dubbo protocol.
392398
- `SQL Insert and Update Column` (`sql_upsert_column`): Extract field from SQL insertion columns, e.g., `INSERT INTO table (column1, column2) VALUES (value1, value2)`.
393-
Only MySQL is supported and only the first column can be extracted.
399+
Only MySQL and Oracle are supported and only the first row can be extracted.
394400
description@ch: |-
395401
字段的提取类型,可选值及含义为:
396402
- `头字段提取` (`header_field`):从 HTTP/Dubbo/SofaRPC 等协议的 Header 部分提取字段,例如 HTTP 的 Header 形如:`key: value`。
@@ -405,7 +411,7 @@ $defs:
405411
- `Dubbo 头字段提取` (`dubbo_header_value`):Payload 使用 Dubbo 协议,从 Dubbo Attachments 中提取字段。
406412
- `Dubbo map 内容提取` (`dubbo_payload_map_string_value`):Payload 使用 Dubbo 协议,且业务报文以 key-value 形式编码,从中提取指定的字段。
407413
- `SQL 插入和更新语句列提取` (`sql_upsert_column`):从 SQL 插入列中提取字段,例如:`INSERT INTO table (column1, column2) VALUES (value1, value2)`。
408-
目前只支持 MySQL 协议,且只能提取插入的第一列内容
414+
目前只支持 MySQL 和 Oracle 协议,且只能提取插入的第一行内容
409415
match:
410416
type: object
411417
title@en: Match
@@ -722,7 +728,7 @@ $defs:
722728
$ref: '#/$defs/field_output'
723729
port_list:
724730
type: string
725-
pattern: ^\d+(-\d+)?$
731+
pattern: ^\d+(-\d+)?(,\d+(-\d+)?)*$
726732
match_keyword:
727733
type: object
728734
required:
@@ -941,7 +947,7 @@ $defs:
941947
- 字典提取
942948
- 分割提取
943949
title@en: Post-processing type
944-
title@ch: 后期处理类型
950+
title@ch: 后处理类型
945951
settings:
946952
type: array
947953
title@en: Settings

0 commit comments

Comments
 (0)