- Más nuevo
- Más votos
- Más comentarios
This can be done using the below query:
CREATE EXTERNAL TABLE IF NOT EXISTS tgwflowlogspqttbl
(
version int,
resource_type string,
account_id string,
tgw_id string,
tgw_attachment_id string,
tgw_src_vpc_account_id string,
tgw_dst_vpc_account_id string,
tgw_src_vpc_id string,
tgw_dst_vpc_id string,
tgw_src_subnet_id string,
tgw_dst_subnet_id string,
tgw_src_eni string,
tgw_dst_eni string,
tgw_src_az_id string,
tgw_dst_az_id string,
tgw_pair_attachment_id string,
srcaddr string,
dstaddr string,
srcpor int,
dstport int,
protocol bigint,
packet bigint,
bytes bigint,
start bigint,
end
bigint,
log_status string,
type string,
packets_lost_no_route bigint,
packets_lost_blackhole bigint,
packets_lost_mtu_exceeded bigint,
packets_lost_ttl_expired bigint,
tcp_flags int,
region string,
flow_direction string,
pkt_src_aws_service string,
pkt_dst_aws_service string)
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
LOCATION
's3://bucket/tgw-logs-parquet/'
TBLPROPERTIES (
'skip.header.line.count'='1'
)
Hi There
Querying TGW flow logs with Athena is not currently supported
See https://docs.aws.amazon.com/vpc/latest/tgw/tgw-flow-logs.html
You can search TGW flow logs using Cloudwatch
See https://docs.aws.amazon.com/vpc/latest/tgw/working-with-flow-logs.html#search-flow-log-records
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 4 meses
- OFICIAL DE AWSActualizada hace 2 años