Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 9c2ea0d2 authored by Kenny Moore's avatar Kenny Moore
Browse files

working log sink exclusions

parent 4095783a
...@@ -78,21 +78,22 @@ resource "google_logging_project_sink" "log_export" { ...@@ -78,21 +78,22 @@ resource "google_logging_project_sink" "log_export" {
name = "${google_project.gcp_project.project_id}-log-export" name = "${google_project.gcp_project.project_id}-log-export"
destination = var.log_export_destination destination = var.log_export_destination
# filter = local.log_filters # Use only if not using aggregate log sink at folder level # filter = local.log_filters # Use only if not using aggregate log sink at folder level
filter = local.filter_string # if adding filter to match nothing; use in conjunction with aggregate log sink + exclusion filter filter = local.filter_string # if adding filter to match nothing; use in conjunction with aggregated log sink + exclusion filter
# exclusions { exclusions {
# name = "Aggregated_Logs_Exclusion" name = "Aggregated_Logs_Exclusion"
# description = "Excluding logs already captured by aggregated log sink (at folder). Please DO NOT alter/remove." description = "Excluding logs already captured by aggregated log sink (at folder). Please DO NOT alter/remove."
# filter = local.log_filters filter = local.log_filters
# } }
unique_writer_identity = true unique_writer_identity = true
} }
resource "google_logging_project_exclusion" "aggregated_log_exclusions" { # # does not work - still allows duplicate logs from aggregated log sink :(
project = google_project.gcp_project.project_id # resource "google_logging_project_exclusion" "aggregated_log_exclusions" {
name = "Aggregated_Logs_Exclusion" # project = google_project.gcp_project.project_id
description = "Excluding logs already captured by aggregated log sink (at folder). Please DO NOT alter/remove." # name = "Aggregated_Logs_Exclusion"
filter = local.log_filters # description = "Excluding logs already captured by aggregated log sink (at folder). Please DO NOT alter/remove."
} # filter = local.log_filters
# }
# Give unique writer permission to publish/write to pub/sub topic # Give unique writer permission to publish/write to pub/sub topic
resource "google_pubsub_topic_iam_member" "publisher" { resource "google_pubsub_topic_iam_member" "publisher" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment