From 8d97e6b635ba2cc98c61c2d555a3c952cd7cda6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=9A=E5=B2=B1=E6=9D=B0?= Date: Wed, 25 Aug 2021 06:32:06 +0000 Subject: [PATCH] Update create_dos_tables.sql --- TSG-21.08/clickhouse/create_dos_tables.sql | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/TSG-21.08/clickhouse/create_dos_tables.sql b/TSG-21.08/clickhouse/create_dos_tables.sql index dd299eb..52769d8 100644 --- a/TSG-21.08/clickhouse/create_dos_tables.sql +++ b/TSG-21.08/clickhouse/create_dos_tables.sql @@ -1,6 +1,5 @@ - CREATE TABLE tsg_galaxy_v3.dos_event_log_local on cluster ck_cluster( -log_id UInt64, + log_id UInt64, start_time Int64, end_time Int64, attack_type String, @@ -31,3 +30,20 @@ CREATE TABLE tsg_galaxy_v3.dos_event_log on cluster ck_query( packet_rate Int64, bit_rate Int64 ) ENGINE = Distributed('ck_cluster', 'tsg_galaxy_v3', 'dos_event_log_local', rand()); + + +CREATE TABLE tsg_galaxy_v3.dos_event_log on cluster ck_cluster( + log_id UInt64, + start_time Int64, + end_time Int64, + attack_type String, + severity String, + conditions String, + destination_ip String, + destination_country String, + source_ip_list String, + source_country_list String, + session_rate Int64, + packet_rate Int64, + bit_rate Int64 +) ENGINE = Distributed('ck_cluster', 'tsg_galaxy_v3', 'dos_event_log_local', rand());