Skip to content

Commit

Permalink
Change audit log alert window_size and frequency (#954)
Browse files Browse the repository at this point in the history
This to get alerts less often
  • Loading branch information
Edvin N authored Mar 6, 2023
1 parent 8e5dd74 commit 1aff96b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- [#947](https://github.com/XenitAB/terraform-modules/pull/947) Bump git-auth-proxy to v0.8.2.
- [#946](https://github.com/XenitAB/terraform-modules/pull/946) [Breaking] Enable configuration for private and public ingress controllers.
- [#949](https://github.com/XenitAB/terraform-modules/pull/949) Update audit log alert criteria.
- [#954](https://github.com/XenitAB/terraform-modules/pull/954) Make audit log alert have bigger window_size and frequency.

## 2023.02.3

Expand Down
5 changes: 3 additions & 2 deletions modules/azure/core/log.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ resource "azurerm_monitor_metric_alert" "log" {
resource_group_name = data.azurerm_resource_group.log.name
scopes = [azurerm_storage_account.log.id]
description = "No data being written to the storage account, check the AKS audit logs"
frequency = "PT5M"
frequency = "PT15M"
window_size = "PT1H"

criteria {
aggregation = "Average"
Expand All @@ -55,5 +56,5 @@ resource "azurerm_monitor_metric_alert" "log" {
action {
action_group_id = azurerm_monitor_action_group.this["alerts"].id
}
severity = 1
severity = 2
}

0 comments on commit 1aff96b

Please sign in to comment.