Description
In alicloud_log_audit, RDS audit, slow-query and performance logs have separate switches. Choose the records you need from each instance.
Potential impact
An instance outside the collection policy can have gaps in its access or performance history.
Remediation
In variable_map, set the categories you need to "true" using rds_enabled, rds_slow_enabled and rds_perf_enabled. Check instance support, audit settings and collection permissions. At the destination, check each intended instance for records in its selected categories. Restrict access and set a retention period that fits your budget.
Examples
Supply your account ID in var.account_id. The second excerpt adds audit collection to the slow-query and performance logs already selected.
Before
resource "alicloud_log_audit" "example" {
display_name = "tf-audit-test"
aliuid = var.account_id
variable_map = {
rds_enabled = "false"
rds_slow_enabled = "true"
rds_perf_enabled = "true"
}
}
After
resource "alicloud_log_audit" "example" {
display_name = "tf-audit-test"
aliuid = var.account_id
variable_map = {
rds_enabled = "true"
rds_slow_enabled = "true"
rds_perf_enabled = "true"
}
}