log-analytics

avinor/log-analytics/azurerm

Terraform Module HCL AZURERM

Terraform module to deploy Log Analytics workspace with option to add solutions to it.

Install
module "log-analytics" {
source = "avinor/log-analytics/azurerm"
version = "2.0.3"
}
plain text: /constructs/tfmod-avinor-log-analytics-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Log Analytics Deploys a log analytics workspace for collecting all diagnostics logs and metrics. Can collect logs across multiple subscriptions and connect to Security Center. It is recommended to deploy only one instance per region to collect all diagnostics in one place. For multiple regions it can be advantagious to deploy one in each region, as recommended by Microsoft. Setup Not all options are available in terraform yet. To collect Azure Activity logs additional configuration is required after deployment. Open deployed log analytics workspace and go to "Workspace Data Sources" -> "Azure Activity log" and connect to subscriptions that should collect activity logs. Usage Example using tau for deployment ``terraform module { source = "avinor/log-analytics/azurerm" version = "1.1.0" } in

Inputs (9)
NameTypeDescriptionDefault
namestringName of Log Analystics Workspace. required
resource_group_namestringName of resource group to deploy resources in. required
locationstringAzure location where resources should be deployed. required
tagsmap(string)Tags to apply to all resources created.{}
skustringSpecified the Sku of the Log Analytics Workspace."PerNode"
solutionslist(object({ solution_name = A list of solutions to add to the workspace. Should contain solution_name, publi[]
contributorslist(string)A list of users / apps that should have Log Analytics Contributer access. Requir[]
retention_in_daysnumberThe workspace data retetion in days. Possible values range between 30 and 730.30
security_center_subscriptionlist(string)List of subscriptions this log analytics should collect data for. Does not work []
Outputs (2)
workspace_id — Log Analytics Workspace id, this is just a guid.
resource_id — Id of Log Analytics resource in Azure.
Resources (5)
azurerm_log_analytics_solutionazurerm_log_analytics_workspaceazurerm_resource_groupazurerm_role_assignmentazurerm_security_center_workspace
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.3
Cloud AZURERM
★ Stars10
Forks10
Total downloads7.8k
Inputs9
Outputs2
Resources5
Examples2
LicenseApache-2.0
Namespaceavinor
Updated