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

Query: Top 10 Events

Usage

powerpipe query aws_cloudtrail_log_detections.query.activity_dashboard_logs_by_event

Tailpipe Tables

SQL

select
string_split(event_source, '.')[1] || ':' || event_name as "Event",
count(*) as "Logs"
from
aws_cloudtrail_log
where
not read_only
group by
"Event"
order by
count(*) desc
limit 10;

Dashboards

The query is used in the dashboards: