fix column name errror
This commit is contained in:
@@ -757,7 +757,7 @@ class DatabasePool:
|
|||||||
ingress_if AS iface,
|
ingress_if AS iface,
|
||||||
src_ip::text AS ip_address,
|
src_ip::text AS ip_address,
|
||||||
src_mac::text AS mac_address,
|
src_mac::text AS mac_address,
|
||||||
COALESCE(NULLIF(app_protocol::text, ''), NULLIF(app_master_protocol::text, ''), NULLIF(ip_proto::text, ''), NULLIF(eth_type::text, ''), 'UNKNOWN') AS protocol_name,
|
COALESCE(NULLIF(app_protocol::text, ''), NULLIF(ip_proto::text, ''), NULLIF(eth_type::text, ''), 'UNKNOWN') AS protocol_name,
|
||||||
COALESCE(NULLIF(verdict::text, ''), 'unknown') AS verdict_name,
|
COALESCE(NULLIF(verdict::text, ''), 'unknown') AS verdict_name,
|
||||||
timestamp,
|
timestamp,
|
||||||
'source_on_ingress' AS evidence
|
'source_on_ingress' AS evidence
|
||||||
@@ -772,7 +772,7 @@ class DatabasePool:
|
|||||||
egress_if AS iface,
|
egress_if AS iface,
|
||||||
dst_ip::text AS ip_address,
|
dst_ip::text AS ip_address,
|
||||||
dst_mac::text AS mac_address,
|
dst_mac::text AS mac_address,
|
||||||
COALESCE(NULLIF(app_protocol::text, ''), NULLIF(app_master_protocol::text, ''), NULLIF(ip_proto::text, ''), NULLIF(eth_type::text, ''), 'UNKNOWN') AS protocol_name,
|
COALESCE(NULLIF(app_protocol::text, ''), NULLIF(ip_proto::text, ''), NULLIF(eth_type::text, ''), 'UNKNOWN') AS protocol_name,
|
||||||
COALESCE(NULLIF(verdict::text, ''), 'unknown') AS verdict_name,
|
COALESCE(NULLIF(verdict::text, ''), 'unknown') AS verdict_name,
|
||||||
timestamp,
|
timestamp,
|
||||||
'destination_on_egress' AS evidence
|
'destination_on_egress' AS evidence
|
||||||
|
|||||||
Reference in New Issue
Block a user