turbot/tailpipe-mod-aws-cloudtrail-log-detections

Query: Top 10 Source IPs (Non-AWS)

Usage

powerpipe query aws_cloudtrail_log_detections.query.activity_dashboard_logs_by_source_ip

Tailpipe Tables

SQL

select
tp_source_ip as "Source IP",
count(*) as "Logs"
from
aws_cloudtrail_log
where
tp_source_ip not like '%amazonaws.com'
and tp_source_ip != 'AWS Internal'
group by
tp_source_ip
order by
count(*) desc
limit 10;

Dashboards

The query is used in the dashboards: