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