turbot/azure_compliance

Query: kubernetes_cluster_logging_enabled

Usage

powerpipe query azure_compliance.query.kubernetes_cluster_logging_enabled

SQL

select
c.id as resource,
case
when addon_profiles -> 'omsAgent' ->> 'enabled' = 'true' and addon_profiles -> 'omsAgent' ->> 'config' is not null then 'ok'
else 'alarm'
end as status,
case
when addon_profiles -> 'omsAgent' ->> 'enabled' = 'true' and addon_profiles -> 'omsAgent' ->> 'config' is not null then c.name || ' logging enabled.'
else c.name || ' logging disabled.'
end as reason
, c.resource_group as resource_group
, sub.display_name as subscription
from
azure_kubernetes_cluster c,
azure_subscription sub
where
sub.subscription_id = c.subscription_id;

Controls

The query is being used by the following controls: