Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Merge branch 'azure-log-alert' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jherrflexion committed Oct 23, 2024
2 parents e872bb7 + d4c7553 commit 5a9d278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operations/template/alert.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "ti-log-errors-alert" {

query = <<-QUERY
AppServiceConsoleLogs
| where TimeGenerated >= ago(30m)
and TimeGenerated <= now()
| project JsonResult = parse_json(ResultDescription) | evaluate bag_unpack(JsonResult)
| where level == 'ERROR'
and TimeGenerated >= ago(30m)
and TimeGenerated <= now()
| summarize count()
QUERY

Expand Down

0 comments on commit 5a9d278

Please sign in to comment.