summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
author童宗振 <[email protected]>2024-04-16 09:57:09 +0000
committer童宗振 <[email protected]>2024-04-16 09:57:09 +0000
commit134ef8b0b14ef76c6c0fec7e998196b19e73722a (patch)
tree4d77704cce1a6d6ad03be51441021392e8448296 /etc
parent1f413abebc4c2b8b7b6457a717a9d9d7c6b74ae7 (diff)
Adjust file path
Diffstat (limited to 'etc')
-rw-r--r--etc/dp_telemetry_rules.json10
-rw-r--r--etc/dp_trace.conf4
-rw-r--r--etc/table_schema.json13
3 files changed, 25 insertions, 2 deletions
diff --git a/etc/dp_telemetry_rules.json b/etc/dp_telemetry_rules.json
new file mode 100644
index 0000000..a5c9972
--- /dev/null
+++ b/etc/dp_telemetry_rules.json
@@ -0,0 +1,10 @@
+{
+ "plugin_table": [
+ {
+ "table_name": "DP_TRACE_TELEMETRY_TABLE",
+ "table_content": [
+ "0\t{\"job_id\":\"72694b1c-6833-4c46-acde-52e2d6409314\",\"bpf_expr\":\"ip host 172.19.199.171\"}\t1"
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/etc/dp_trace.conf b/etc/dp_trace.conf
index 226012d..da9d05a 100644
--- a/etc/dp_trace.conf
+++ b/etc/dp_trace.conf
@@ -14,8 +14,8 @@ sasl_password=
# 0:json 1:redis
maat_log_level=0
maat_input_mode=0
-table_schema=../test/table_schema.json
-json_cfg_file=../test/dp_telemetry_rules.json
+table_schema=../etc/table_schema.json
+json_cfg_file=../etc/dp_telemetry_rules.json
maat_redis_server=
maat_redis_port_range=
maat_redis_db_index= \ No newline at end of file
diff --git a/etc/table_schema.json b/etc/table_schema.json
new file mode 100644
index 0000000..31067a6
--- /dev/null
+++ b/etc/table_schema.json
@@ -0,0 +1,13 @@
+[
+ {
+ "table_id": 1,
+ "table_name": "DP_TRACE_TELEMETRY_TABLE",
+ "table_type": "plugin",
+ "valid_column": 3,
+ "custom": {
+ "key": 1,
+ "key_type": "integer",
+ "key_len": 8
+ }
+ }
+] \ No newline at end of file