forked from datarootsio/terraform-module-azure-datalake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogs.tf
47 lines (39 loc) · 901 Bytes
/
logs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
resource "azurerm_monitor_diagnostic_setting" "data_factory" {
count = var.use_log_analytics ? 1 : 0
name = "omsdf${var.data_lake_name}"
target_resource_id = azurerm_data_factory.df.id
log_analytics_workspace_id = var.log_analytics_workspace_id
log_analytics_destination_type = "Dedicated"
metric {
enabled = true
category = "AllMetrics"
retention_policy {
enabled = true
days = 14
}
}
log {
enabled = true
category = "TriggerRuns"
retention_policy {
enabled = true
days = 14
}
}
log {
enabled = true
category = "ActivityRuns"
retention_policy {
enabled = true
days = 14
}
}
log {
enabled = true
category = "PipelineRuns"
retention_policy {
enabled = true
days = 14
}
}
}