Skip to content

Commit 034339f

Browse files
committed
PPHA-785: Use [ERROR] string for log alerting
1 parent 603163b commit 034339f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • infrastructure/modules/container-apps

infrastructure/modules/container-apps/alerts.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ resource "azurerm_monitor_scheduled_query_rules_alert_v2" "five_hundred_error_al
2222
operator = "GreaterThan"
2323
query = <<-QUERY
2424
ContainerAppConsoleLogs_CL
25-
| where Log_s contains "500"
25+
| where Log contains "[ERROR]"
2626
QUERY
2727
threshold = 0
2828
time_aggregation_method = "Count"

0 commit comments

Comments
 (0)