From f34326dfdc79091aab0081e6b37047fe6c87dd58 Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Fri, 18 Aug 2023 18:33:12 -0400 Subject: [PATCH] Update the database instance CloudWatch log group This log group that is created should match the format that we are now pushing to the instances' CloudWatch Agent configuration. --- terraform/nvdsync_failure_alarms.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/nvdsync_failure_alarms.tf b/terraform/nvdsync_failure_alarms.tf index 85987113..f0a596a2 100644 --- a/terraform/nvdsync_failure_alarms.tf +++ b/terraform/nvdsync_failure_alarms.tf @@ -7,7 +7,7 @@ resource "aws_cloudwatch_log_group" "instance_logs" { # # We have to account for the fact that the local hostname on the # instance drops the local domain name. - name = "/instance-logs/${split(".", each.value)[0]}" + name = "${local.cloudwatch_agent_log_group_base}/${split(".", each.value)[1]}/${split(".", each.value)[0]}" } # Create a log metric filter that bumps a metric when a syslog