Skip to content

Commit d202d51

Browse files
committed
Update RE so it correctly patern matches
The Regular Expression within the KQL was causing problems and resulted in the KQL reporting false positives. This PR updates the RE so it works correctly. It was not known why the formatting of the logs changed.
1 parent 6144dfb commit d202d51

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)