caf-activity-logs
aztfmod/caf-activity-logs/azurerm
Azure Activity logs module for Cloud Adoption Framework for Azure landing zones
  Configures the Azure Activity Logs for a subscription Configures the Azure Activity Logs rention for a subscription into: 1. Event Hub for short term and fast access (optional). 2. Storage account for long term retention. 3. Log Analytics Reference the module to a specific version (recommended): ``hcl module "activity_logs" { source = "aztfmod/caf-activity-logs/azurerm" version = "0.x.y" convention = local.convention location = local.location name = local.name diagnostic_name = local.diagnostic_name log_analytics_workspace_id = module.
| Name | Type | Description | Default |
|---|---|---|---|
| location | string | (Required) Define the region where the resources will be created. | required |
| log_analytics_workspace_id | string | (Required) Id of the Log Analytics workspace | required |
| convention | string | (Required) Naming convention method to use | required |
| name | string | (Required) Name for the objects created (before naming convention applied.) | required |
| resource_group_name | string | (Required) Name of the resource group to deploy the activity logs. | required |
| diagnostic_name | string | name of the diagnostic setting | required |
| tags | string | (Required) Tags for the logs repositories to be created | required |
| audit_settings_object | string | (Required) Contains the settings for Azure Audit activity log retention | required |
| max_length | string | (Optional) You can speficy a maximum length to the name of the resource | "" |
| enable_event_hub | string | (Optional) Determine to deploy Event Hub for the configuration | true |
| prefix | string | (Optional) You can use a prefix to the name of the resource | "" |
| postfix | string | (Optional) You can use a postfix to the name of the resource | "" |
seclogs_map — Ouputs a map with storage account id (activity_sa), eventhub name (activity_eh_name) and id (activit