Skip to content

Commit

Permalink
Adding new pattern as it did not like the : (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamclaughlin authored Dec 14, 2023
1 parent c308dfa commit a5e7f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/alarms.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "aws_cloudwatch_log_metric_filter" "sre_bot_error" {
name = local.error_logged
pattern = "?ERROR:slack_bolt.App"
pattern = "\"ERROR:slack_bolt.App\""
log_group_name = local.api_cloudwatch_log_group

metric_transformation {
Expand Down Expand Up @@ -29,7 +29,7 @@ resource "aws_cloudwatch_metric_alarm" "sre_bot_error" {

resource "aws_cloudwatch_log_metric_filter" "sre_bot_warning" {
name = local.warning_logged
pattern = "?WARNING:slack_bolt.App"
pattern = "\"WARNING:slack_bolt.App\""
log_group_name = local.api_cloudwatch_log_group

metric_transformation {
Expand Down

0 comments on commit a5e7f78

Please sign in to comment.