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

Query: root_user_activity_report_total_logs

Usage

powerpipe query aws_cloudtrail_log_detections.query.root_user_activity_report_total_logs

SQL

select
count(*) as "Total Logs"
from
aws_cloudtrail_log
where
($1 = 'true' or ($1 = 'false' and read_only = false))
and recipient_account_id in $2
and user_identity.type = 'Root'

Dashboards

The query is used in the dashboards: