turbot/terraform_azure_compliance

Query: monitor_log_profile_enabled_for_all_categories

Usage

powerpipe query terraform_azure_compliance.query.monitor_log_profile_enabled_for_all_categories

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'categories') @> '["Write", "Action", "Delete"]' then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'categories') @> '["Write", "Action", "Delete"]' then ' collects logs for categories write, delete and action'
else ' does not collects logs for all categories.'
end || '.' reason,
path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_monitor_log_profile';

Controls

The query is being used by the following controls: