turbot/aws_insights

Query: cloudtrail_trail_logging_disabled_count

Usage

powerpipe query aws_insights.query.cloudtrail_trail_logging_disabled_count

Steampipe Tables

SQL

select
count(*) as value,
'Logging Disabled' as label,
case count(*) when 0 then 'ok' else 'alert' end as "type"
from
aws_cloudtrail_trail
where
region = home_region
and not is_logging;

Dashboards

The query is used in the dashboards: