Severity Framework
Snyk CCSS
Rule category
Logging / Logging
Is your enviroment affected by this misconfiguration?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsFrameworks
CIS-Azure
HIPAA
ISO-27001
NIST-800-53
PCI-DSS
SOC-2
- Snyk ID SNYK-CC-00687
- credit Snyk Research Team
Description
Monitor log profile should be created. A log profile controls how an activity log is exported. By default, activity logs are retained only for 90 days. Log profiles should be defined so that logs can be exported and stored for a longer duration in order to analyze security activities within an Azure subscription.
How to fix?
Monitor log profile
should be created. A log profile
controls how an activity log is exported.
Example configuration
resource "azurerm_monitor_log_profile" "Allowed" {
name = "example687amlp"
categories = [
"Action",
"Delete",
"Write",
]
locations = [
"westus",
"global",
]
storage_account_id = azurerm_storage_account.example687.id
retention_policy {
enabled = true
days = 7
}
}