Skip to content

Commit

Permalink
Merge pull request #1501 from CDCgov/azure-alert-prelive-fix
Browse files Browse the repository at this point in the history
Added prelive filter to our error log alert
  • Loading branch information
jherrflexion authored Oct 28, 2024
2 parents e0042dd + 346cb82 commit f1058b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operations/template/alert.tf
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "ti-log-errors-alert" {

query = <<-QUERY
AppServiceConsoleLogs
| where _ResourceId !contains "pre-live"
| project columnifexists("ResultDescription", 'default_value')
| project JsonResult = parse_json(ResultDescription)
| evaluate bag_unpack(JsonResult) : (level: string, message: string)
Expand Down

0 comments on commit f1058b3

Please sign in to comment.