From 2f9a4d41bbe80e82d2309193389f66fa6c080701 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Mon, 17 Nov 2025 11:28:14 +0100 Subject: [PATCH] Add gateway_logging.tf --- gateway_logging.tf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gateway_logging.tf diff --git a/gateway_logging.tf b/gateway_logging.tf new file mode 100644 index 0000000..71cf513 --- /dev/null +++ b/gateway_logging.tf @@ -0,0 +1,23 @@ +# ============================================================================= +# CLOUDFLARE : Gateway : DNS logging +# ============================================================================= + +# +resource "cloudflare_zero_trust_gateway_logging" "example_zero_trust_gateway_logging" { + account_id = local.cloudflare_account_id + redact_pii = true + settings_by_rule_type = { + dns = { + log_all = false + log_blocks = true + } + http = { + log_all = false + log_blocks = true + } + l4 = { + log_all = false + log_blocks = true + } + } +} \ No newline at end of file