turbot/tailpipe-mod-aws-vpc-flow-log-detections

Query: Traffic by Protocol

Description

Distribution of record counts across different protocols.

Usage

powerpipe query aws_vpc_flow_log_detections.query.activity_dashboard_traffic_by_protocol

Tailpipe Tables

SQL

select
case
when protocol = 1 then 'ICMP'
when protocol = 6 then 'TCP'
when protocol = 17 then 'UDP'
else 'Other'
end as protocol_type,
count(*) as "Records"
from
aws_vpc_flow_log
where
protocol is not null
group by
protocol_type
order by
"Records" desc;

Dashboards

The query is used in the dashboards: