From e8ad820c15b1a0a62b97bb05f382c147f28ca154 Mon Sep 17 00:00:00 2001 From: Josh Seba Date: Fri, 10 May 2024 13:54:12 -0700 Subject: [PATCH 1/2] Add support for cloudchamber_logs Logpush dataset Also update the docs to list the dataset. --- docs/resources/logpush_job.md | 2 +- internal/sdkv2provider/schema_cloudflare_logpush_job.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/logpush_job.md b/docs/resources/logpush_job.md index a34d82d602..f320e209fc 100644 --- a/docs/resources/logpush_job.md +++ b/docs/resources/logpush_job.md @@ -111,7 +111,7 @@ resource "cloudflare_logpush_job" "example_job" { ### Required -- `dataset` (String) The kind of the dataset to use with the logpush job. Available values: `access_requests`, `casb_findings`, `firewall_events`, `http_requests`, `spectrum_events`, `nel_reports`, `audit_logs`, `gateway_dns`, `gateway_http`, `gateway_network`, `dns_logs`, `network_analytics_logs`, `workers_trace_events`, `device_posture_results`, `zero_trust_network_sessions`, `magic_ids_detections`, `page_shield_events`. +- `dataset` (String) The kind of the dataset to use with the logpush job. Available values: `access_requests`, `casb_findings`, `firewall_events`, `http_requests`, `spectrum_events`, `nel_reports`, `audit_logs`, `gateway_dns`, `gateway_http`, `gateway_network`, `dns_logs`, `network_analytics_logs`, `workers_trace_events`, `device_posture_results`, `zero_trust_network_sessions`, `magic_ids_detections`, `page_shield_events`, `cloudchamber_logs`. - `destination_conf` (String) Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included. See [Logpush destination documentation](https://developers.cloudflare.com/logs/reference/logpush-api-configuration#destination). ### Optional diff --git a/internal/sdkv2provider/schema_cloudflare_logpush_job.go b/internal/sdkv2provider/schema_cloudflare_logpush_job.go index c0ff60b8a8..1a09f7ea64 100644 --- a/internal/sdkv2provider/schema_cloudflare_logpush_job.go +++ b/internal/sdkv2provider/schema_cloudflare_logpush_job.go @@ -29,6 +29,7 @@ func resourceCloudflareLogpushJobSchema() map[string]*schema.Schema { "zero_trust_network_sessions", "magic_ids_detections", "page_shield_events", + "cloudchamber_logs", } frequencyAllowedValues := []string{"high", "low"} outputTypeAllowedValues := []string{"ndjson", "csv"} From 09df3fb50b7ad7bd64a0d2b0e05b98d56e6c6563 Mon Sep 17 00:00:00 2001 From: Josh Seba Date: Fri, 10 May 2024 13:59:16 -0700 Subject: [PATCH 2/2] Add changelog entry --- .changelog/3300.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/3300.txt diff --git a/.changelog/3300.txt b/.changelog/3300.txt new file mode 100644 index 0000000000..13811ecc19 --- /dev/null +++ b/.changelog/3300.txt @@ -0,0 +1,3 @@ +```release-note:new-data-source +Add support for logpush cloudchamber_logs +```