diff --git a/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql b/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql index 31e2b4a..4187890 100644 --- a/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql +++ b/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql @@ -6,6 +6,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event_local on cluster ck_cluster ( recv_time Int64, log_id UInt64, profile_id Int64, + rule_id Int64, start_time Int64, end_time Int64, attack_type String, @@ -15,8 +16,11 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event_local on cluster ck_cluster ( destination_country String, source_ip_list String, source_country_list String, + sessions Int64, session_rate Int64, + packets Int64, packet_rate Int64, + bytes Int64, bit_rate Int64 ) ENGINE = MergeTree @@ -28,6 +32,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event on cluster ck_cluster ( recv_time Int64, log_id UInt64, profile_id Int64, + rule_id Int64, start_time Int64, end_time Int64, attack_type String, @@ -37,8 +42,11 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event on cluster ck_cluster ( destination_country String, source_ip_list String, source_country_list String, + sessions Int64, session_rate Int64, + packets Int64, packet_rate Int64, + bytes Int64, bit_rate Int64 ) ENGINE =Distributed(ck_cluster,tsg_galaxy_v3,dos_event_local,rand()); @@ -48,6 +56,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event on cluster ck_query ( recv_time Int64, log_id UInt64, profile_id Int64, + rule_id Int64, start_time Int64, end_time Int64, attack_type String, @@ -57,8 +66,11 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event on cluster ck_query ( destination_country String, source_ip_list String, source_country_list String, + sessions Int64, session_rate Int64, + packets Int64, packet_rate Int64, + bytes Int64, bit_rate Int64 ) ENGINE =Distributed(ck_cluster,tsg_galaxy_v3,dos_event_local,rand()); diff --git a/Clickhouse最新全量建表语句/Clickhouse_TSG_校验sql.sql b/Clickhouse最新全量建表语句/Clickhouse_TSG_校验sql.sql index 5a6a17f..fe00711 100644 --- a/Clickhouse最新全量建表语句/Clickhouse_TSG_校验sql.sql +++ b/Clickhouse最新全量建表语句/Clickhouse_TSG_校验sql.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 = 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