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

Query: Activity by Account

Usage

powerpipe query aws_cloudtrail_log_detections.query.activity_dashboard_logs_by_account

Tailpipe Tables

SQL

select
recipient_account_id,
count(*) as "Logs"
from
aws_cloudtrail_log
group by
recipient_account_id
order by
count(*) desc;

Dashboards

The query is used in the dashboards: