From 87e9b2852be47bedeadba971d088012da947d3b7 Mon Sep 17 00:00:00 2001 From: lifengchao Date: Thu, 26 Sep 2024 10:50:55 +0800 Subject: [PATCH] =?UTF-8?q?TSG-22703=20clickhouse=E5=BA=93=E8=A1=A8dos=5Fe?= =?UTF-8?q?vent=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5rule=5Fuuid=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AD=97=E6=AE=B5profile=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../最新全量建表语句/tsg_olap_clickhouse_ddl.sql | 4 ++-- .../tsg_olap_clickhouse_ddl_check.sql | 2 +- .../clickhouse/tsg_olap_clickhouse_ddl_24.10.sql | 4 ++-- .../tsg_olap_clickhouse_ddl_check_24.10.sql | 2 +- .../tsg_olap_clickhouse_ddl_upgrade_24.10.sql | 11 +++++++++++ 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl.sql b/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl.sql index 4523b5f..450947c 100644 --- a/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl.sql +++ b/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl.sql @@ -4,8 +4,8 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event_local on cluster ck_cluster ( vsys_id Int32, recv_time Int64, log_id UInt64, - profile_id Int64, rule_id Int64, + rule_uuid String, start_time Int64, end_time Int64, attack_type String, @@ -30,8 +30,8 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event on cluster ck_cluster ( vsys_id Int32, recv_time Int64, log_id UInt64, - profile_id Int64, rule_id Int64, + rule_uuid String, start_time Int64, end_time Int64, attack_type String, diff --git a/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl_check.sql b/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl_check.sql index db6a697..7f40128 100644 --- a/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl_check.sql +++ b/tsg_olap/installation/clickhouse/最新全量建表语句/tsg_olap_clickhouse_ddl_check.sql @@ -1,6 +1,6 @@ SELECT log_id, recv_time, vsys_id, assessment_date, lot_number, file_name, assessment_file, assessment_type, features, `size`, file_checksum_sha FROM tsg_galaxy_v3.assessment_event where recv_time >= toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time = toUnixTimestamp('2030-01-01 00:00:00') AND recv_time