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

Query: Top 10 Source Destination Pairs by Packets

Description

List the top 10 source-destination pairs with the highest packet counts.

Usage

powerpipe query aws_vpc_flow_log_detections.query.activity_dashboard_top_source_destination_pairs_by_packets

Tailpipe Tables

SQL

select
src_addr as "Source IP",
dst_addr as "Destination IP",
coalesce(sum(packets), 0) as "Total Packets",
coalesce(sum(bytes), 0) as "Total Bytes",
count(*) as "Records",
max(start_time) as "Last Seen"
from
aws_vpc_flow_log
where
src_addr is not null
and dst_addr is not null
group by
src_addr, dst_addr
order by
"Total Packets" desc
limit 10;

Dashboards

The query is used in the dashboards: