From d1725925bcd9d615fa2c80e79159f20adc253ba6 Mon Sep 17 00:00:00 2001 From: lifengchao Date: Sun, 28 Apr 2024 10:38:46 +0800 Subject: [PATCH] =?UTF-8?q?TSG-20923=20OLAP=20=E5=85=AC=E5=85=B1=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=A2=9E=E5=8A=A0direction(24-05=E7=89=88=E6=9C=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Clickhouse_TSG_建表语句.sql | 24 +++++++++++++++ .../Clickhouse_TSG_校验sql.sql | 15 +++++----- .../TSG-24.05/clickhouse/Clickhouse_TSG_建表语句.sql | 24 +++++++++++++++ .../TSG-24.05/clickhouse/check-24.05.sql | 12 ++++---- .../TSG-24.05/clickhouse/update-24.05-ck.sql | 29 +++++++++++++++++++ 5 files changed, 91 insertions(+), 13 deletions(-) diff --git a/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql b/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql index dae55e8..4df7153 100644 --- a/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql +++ b/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql @@ -146,6 +146,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -390,6 +391,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -632,6 +634,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -873,6 +876,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -1116,6 +1120,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -1357,6 +1362,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -1599,6 +1605,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -1842,6 +1849,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2083,6 +2091,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2314,6 +2323,7 @@ ingestion_time Int64, processing_time Int64, insert_time Int64 MATERIALIZED toUnixTimestamp(now()), address_type Int32, +direction String, vsys_id Int32, client_ip String, client_port Int32, @@ -2408,6 +2418,7 @@ ingestion_time Int64, processing_time Int64, insert_time Int64 , address_type Int32, +direction String, vsys_id Int32, client_ip String, client_port Int32, @@ -2500,6 +2511,7 @@ ingestion_time Int64, processing_time Int64, insert_time Int64 , address_type Int32, +direction String, vsys_id Int32, client_ip String, client_port Int32, @@ -2607,6 +2619,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2678,6 +2691,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2747,6 +2761,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2818,6 +2833,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -2981,6 +2997,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -3141,6 +3158,7 @@ data_center String, device_group String, sled_ip String, address_type Int32, +direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -3305,6 +3323,7 @@ TO tsg_galaxy_v3.security_event_local device_group String, sled_ip String, address_type Int32, + direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -3545,6 +3564,7 @@ SELECT device_group, sled_ip, address_type, + direction, vsys_id, t_vsys_id, flags, @@ -3790,6 +3810,7 @@ TO tsg_galaxy_v3.monitor_event_local device_group String, sled_ip String, address_type Int32, + direction String, vsys_id Int32, t_vsys_id Int32, flags Int64, @@ -4030,6 +4051,7 @@ SELECT device_group, sled_ip, address_type, + direction, vsys_id, t_vsys_id, flags, @@ -4251,6 +4273,8 @@ SELECT FROM tsg_galaxy_v3.session_record_local WHERE empty(monitor_rule_list) = 0 ; + + CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.datapath_telemetry_record_local on cluster ck_cluster ( log_id UInt64, recv_time Int64, diff --git a/Clickhouse最新全量建表语句/Clickhouse_TSG_校验sql.sql b/Clickhouse最新全量建表语句/Clickhouse_TSG_校验sql.sql index 5eb0ff7..7ed23f6 100644 --- a/Clickhouse最新全量建表语句/Clickhouse_TSG_校验sql.sql +++ b/Clickhouse最新全量建表语句/Clickhouse_TSG_校验sql.sql @@ -2,19 +2,20 @@ SELECT log_id, recv_time, vsys_id, assessment_date, lot_number, file_name, asses 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 = 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