https://github.com/avidhara/terraform-azurerm-log-analytics-workspace
Terraform Module for Azure LogAnalytics Workspace
https://github.com/avidhara/terraform-azurerm-log-analytics-workspace
azure azure-log-analytics terraform terraform-azure terraform-azurerm terraform-module terraform-modules
Last synced: 3 months ago
JSON representation
Terraform Module for Azure LogAnalytics Workspace
- Host: GitHub
- URL: https://github.com/avidhara/terraform-azurerm-log-analytics-workspace
- Owner: avidhara
- Created: 2023-11-10T10:23:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-27T07:30:06.000Z (over 1 year ago)
- Last Synced: 2025-01-15T01:39:17.074Z (5 months ago)
- Topics: azure, azure-log-analytics, terraform, terraform-azure, terraform-azurerm, terraform-module, terraform-modules
- Language: HCL
- Homepage: https://registry.terraform.io/modules/avidhara/log-analytics-workspace/azurerm/latest
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform module for Azure Log Analytics Workspace
## How to use it as a module
```hcl
```
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13.1 |
| [azurerm](#requirement\_azurerm) | >= 3.0.0 |## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | >= 3.0.0 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [azurerm_log_analytics_solution.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/log_analytics_solution) | resource |
| [azurerm_log_analytics_workspace.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/log_analytics_workspace) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [allow\_resource\_only\_permissions](#input\_allow\_resource\_only\_permissions) | (Optional) Specifies if the log Analytics Workspace allow users accessing to data associated with resources they have permission to view, without permission to workspace. Defaults to true. | `bool` | `true` | no |
| [cmk\_for\_query\_forced](#input\_cmk\_for\_query\_forced) | Optional) Is Customer Managed Storage mandatory for query management? | `bool` | `false` | no |
| [create\_log\_analytics\_solution](#input\_create\_log\_analytics\_solution) | (Optional) Do you want to create log analytics solution | `bool` | `true` | no |
| [create\_log\_analytics\_workspace](#input\_create\_log\_analytics\_workspace) | Do you want to create Log analytics workspace | `bool` | `true` | no |
| [daily\_quota\_gb](#input\_daily\_quota\_gb) | (Optional) The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited) if omitted. | `string` | `"-1"` | no |
| [internet\_ingestion\_enabled](#input\_internet\_ingestion\_enabled) | (Optional) Should the Log Analytics Workspace support ingestion over the Public Internet? Defaults to true. | `bool` | `true` | no |
| [internet\_query\_enabled](#input\_internet\_query\_enabled) | (Optional) Should the Log Analytics Workspace support querying over the Public Internet? Defaults to true. | `bool` | `true` | no |
| [local\_authentication\_disabled](#input\_local\_authentication\_disabled) | (Optional) Specifies if the log Analytics workspace should enforce authentication using Azure AD. Defaults to false. | `bool` | `false` | no |
| [location](#input\_location) | (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. | `string` | n/a | yes |
| [name](#input\_name) | (Required) Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol. Changing this forces a new resource to be created. | `string` | n/a | yes |
| [plan](#input\_plan) | (Optional) A plan block | `any` |[| no |
{
"product": "OMSGallery/ContainerInsights",
"publisher": "Microsoft"
}
]
| [reservation\_capacity\_in\_gb\_per\_day](#input\_reservation\_capacity\_in\_gb\_per\_day) | (Optional) The capacity reservation level in GB for this workspace. Must be in increments of 100 between 100 and 5000. | `number` | `null` | no |
| [resource\_group\_name](#input\_resource\_group\_name) | (Required) The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created. | `string` | n/a | yes |
| [retention\_in\_days](#input\_retention\_in\_days) | (Optional) The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730. | `number` | `30` | no |
| [sku](#input\_sku) | (Optional) Specifies the SKU of the Log Analytics Workspace. Possible values are Free, PerNode, Premium, Standard, Standalone, Unlimited, CapacityReservation, and PerGB2018 (new SKU as of 2018-04-03). Defaults to PerGB2018. | `string` | `"PerGB2018"` | no |
| [solution\_name](#input\_solution\_name) | (Optional) Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created. | `string` | `"ContainerInsights"` | no |
| [tags](#input\_tags) | (Optional) A mapping of tags to assign to the resource. | `map(string)` | `{}` | no |## Outputs
| Name | Description |
|------|-------------|
| [id](#output\_id) | The Log Analytics Workspace ID. |
| [primary\_shared\_key](#output\_primary\_shared\_key) | The Primary shared key for the Log Analytics Workspace. |
| [secondary\_shared\_key](#output\_secondary\_shared\_key) | The Secondary shared key for the Log Analytics Workspace. |
| [workspace\_id](#output\_workspace\_id) | The Workspace (or Customer) ID for the Log Analytics Workspace. |