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" {
name = "${google_project.gcp_project.project_id}-log-export"
destination = var.log_export_destination
# 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
# exclusions {
# name = "Aggregated_Logs_Exclusion"
# description = "Excluding logs already captured by aggregated log sink (at folder). Please DO NOT alter/remove."
# filter = local.log_filters
# }
filter = local.filter_string # if adding filter to match nothing; use in conjunction with aggregated log sink + exclusion filter
exclusions {
name = "Aggregated_Logs_Exclusion"
description = "Excluding logs already captured by aggregated log sink (at folder). Please DO NOT alter/remove."
filter = local.log_filters
}
unique_writer_identity = true
}
resource "google_logging_project_exclusion" "aggregated_log_exclusions" {
project = google_project.gcp_project.project_id
name = "Aggregated_Logs_Exclusion"
description = "Excluding logs already captured by aggregated log sink (at folder). Please DO NOT alter/remove."
filter = local.log_filters
}
# # does not work - still allows duplicate logs from aggregated log sink :(
# resource "google_logging_project_exclusion" "aggregated_log_exclusions" {
# project = google_project.gcp_project.project_id
# name = "Aggregated_Logs_Exclusion"
# 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
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