turbot/terraform_azure_compliance

Query: sql_database_log_monitoring_enabled

Usage

powerpipe query terraform_azure_compliance.query.sql_database_log_monitoring_enabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'log_monitoring_enabled') is null then 'ok'
when (attributes_std -> 'log_monitoring_enabled')::boolean then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'log_monitoring_enabled') is null then ' log monitoring enabled'
when (attributes_std -> 'log_monitoring_enabled')::boolean then ' log monitoring enabled'
else ' log monitoring disabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_mssql_database_extended_auditing_policy';

Controls

The query is being used by the following controls: