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

Query: Top 10 Destination IP Addresses by Traffic

Description

List the top 10 destination IP addresses generating the most traffic.

Usage

powerpipe query aws_vpc_flow_log_detections.query.activity_dashboard_top_destination_ips_by_traffic

Tailpipe Tables

SQL

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

Dashboards

The query is used in the dashboards: