https://github.com/telekom-mms/terraform-azurerm-log-analytics
A Terraform module that manages the log analytics resources from the azurerm provider.
https://github.com/telekom-mms/terraform-azurerm-log-analytics
azure azure-log-analytics terraform terraform-module
Last synced: 3 months ago
JSON representation
A Terraform module that manages the log analytics resources from the azurerm provider.
- Host: GitHub
- URL: https://github.com/telekom-mms/terraform-azurerm-log-analytics
- Owner: telekom-mms
- License: mpl-2.0
- Created: 2021-12-15T12:51:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-05T03:12:26.000Z (4 months ago)
- Last Synced: 2025-02-05T05:41:19.744Z (4 months ago)
- Topics: azure, azure-log-analytics, terraform, terraform-module
- Language: HCL
- Homepage: https://telekom-mms.github.io/terraform-template
- Size: 42 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# log_analytics
This module manages the hashicorp/azurerm log analytics resources.
For more information see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs > log analytics_<-- This file is autogenerated, please do not change. -->_
## Requirements
| Name | Version |
|------|---------|
| terraform | >=1.5 |
| azurerm | >=3.79.0, <4.0 |## Providers
| Name | Version |
|------|---------|
| azurerm | >=3.79.0, <4.0 |## Resources
| Name | Type |
|------|------|
| azurerm_log_analytics_solution.log_analytics_solution | resource |
| azurerm_log_analytics_workspace.log_analytics_workspace | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| log_analytics_solution | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no |
| log_analytics_workspace | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no |## Outputs
| Name | Description |
|------|-------------|
| log_analytics_solution | Outputs all attributes of resource_type. |
| log_analytics_workspace | Outputs all attributes of resource_type. |
| variables | Displays all configurable variables passed by the module. __default__ = predefined values per module. __merged__ = result of merging the default values and custom values passed to the module |## Examples
Minimal configuration to install the desired resources with the module
```hcl
module "log_analytics" {
source = "registry.terraform.io/telekom-mms/log-analytics/azurerm"
log_analytics_workspace = {
logmms = {
location = "westeurope"
resource_group_name = "rg-mms-github"
}
}
log_analytics_solution = {
container = {
solution_name = "ContainerInsights"
resource_group_name = "rg-mms-github"
location = "westeurope"
workspace_resource_id = module.log_analytics.log_analytics_workspace["logmms"].id
workspace_name = module.log_analytics.log_analytics_workspace["logmms"].name
plan = {
product = "OMSGallery/ContainerInsights"
}
}
}
}
```Advanced configuration to install the desired resources with the module
```hcl
module "log_analytics" {
source = "registry.terraform.io/telekom-mms/log-analytics/azurerm"
log_analytics_workspace = {
logmms = {
location = "westeurope"
resource_group_name = "rg-mms-github"
retention_in_days = 60
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
log_analytics_solution = {
container = {
solution_name = "ContainerInsights"
resource_group_name = "rg-mms-github"
location = "westeurope"
workspace_resource_id = module.log_analytics.log_analytics_workspace["logmms"].id
workspace_name = module.log_analytics.log_analytics_workspace["logmms"].name
plan = {
product = "OMSGallery/ContainerInsights"
}
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
}
```