Skip to content

Commit 9504dfc

Browse files
committed
Update RE so it correctly patern matches
1 parent d33c6ca commit 9504dfc

File tree

1 file changed

+1
-1
lines changed
  • infrastructure/modules/container-app-job

1 file changed

+1
-1
lines changed

infrastructure/modules/container-app-job/alerts.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "job_failure" {
1515
ContainerAppSystemLogs_CL
1616
| where JobName_s == "${azurerm_container_app_job.this.name}"
1717
| where Reason_s == "ProcessExited"
18-
| extend ExitCode = toint(extract(@"exit code:\\s*(\\d+)", 1, Log_s))
18+
| extend ExitCode = toint(extract(@"exit code:\s*(\d+)", 1, Log_s))
1919
| where ExitCode != 0
2020
KQL
2121
severity = 1

0 commit comments

Comments
 (0)