Skip to content

Commit

Permalink
Merge pull request #41 from dduportal/feat/import-logpush-eastus
Browse files Browse the repository at this point in the history
 feat(updates.jenkins.io) import 'http_requests to datadog' logpush resource for eastamerica
  • Loading branch information
dduportal authored Oct 31, 2024
2 parents 043ba63 + e5aca61 commit c991721
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions updates.jenkins.io.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,93 @@ resource "cloudflare_logpush_job" "account_audit_logs" {
]
}
}

import {
id = "zone/${cloudflare_zone.updates_jenkins_io["eastamerica"].id}/771340"
to = cloudflare_logpush_job.zones_access_logs["eastamerica"]
}
resource "cloudflare_logpush_job" "zones_access_logs" {
for_each = toset(["eastamerica"])

enabled = true
zone_id = cloudflare_zone.updates_jenkins_io[each.key].id
name = "${each.key}-access-logs-to-datadog"
destination_conf = "datadog://http-intake.logs.datadoghq.com/api/v2/logs?header_DD-API-KEY=${var.cloudflare_datadog_api_key}&ddsource=cloudflare-r2&service=updates.jenkins.io&host=${each.key}.cloudflare.jenkins.io"
dataset = "http_requests"

output_options {
cve20214428 = true
sample_rate = 0
timestamp_format = "rfc3339"
field_names = [
"RayID",
"CacheCacheStatus",
"CacheReserveUsed",
"CacheResponseBytes",
"CacheResponseStatus",
"CacheTieredFill",
"ClientASN",
"ClientCountry",
"ClientDeviceType",
"ClientIP",
"ClientIPClass",
"ClientRegionCode",
"ClientRequestBytes",
"ClientRequestHost",
"ClientRequestMethod",
"ClientRequestPath",
"ClientRequestProtocol",
"ClientRequestReferer",
"ClientRequestScheme",
"ClientRequestSource",
"ClientRequestURI",
"ClientRequestUserAgent",
"ClientSrcPort",
"ClientTCPRTTMs",
"ClientXRequestedWith",
"ContentScanObjResults",
"ContentScanObjTypes",
"Cookies",
"EdgeEndTimestamp",
"EdgePathingOp",
"EdgePathingSrc",
"EdgePathingStatus",
"EdgeRequestHost",
"EdgeResponseBodyBytes",
"EdgeResponseBytes",
"EdgeResponseCompressionRatio",
"EdgeResponseContentType",
"EdgeResponseStatus",
"EdgeStartTimestamp",
"EdgeTimeToFirstByteMs",
"OriginDNSResponseTimeMs",
"OriginIP",
"OriginRequestHeaderSendDurationMs",
"OriginResponseBytes",
"OriginResponseDurationMs",
"OriginResponseHeaderReceiveDurationMs",
"OriginResponseHTTPExpires",
"OriginResponseHTTPLastModified",
"OriginResponseStatus",
"OriginResponseTime",
"OriginTCPHandshakeDurationMs",
"OriginTLSHandshakeDurationMs",
"RequestHeaders",
"ResponseHeaders",
"SecurityAction",
"SecurityActions",
"SecurityRuleDescription",
"SecurityRuleID",
"SecurityRuleIDs",
"SecuritySources",
"WAFAttackScore",
"WAFFlags",
"WAFMatchedVar",
"WAFRCEAttackScore",
"WAFSQLiAttackScore",
"WAFXSSAttackScore",
"WorkerCPUTime",
"WorkerWallTimeUs",
]
}
}

0 comments on commit c991721

Please sign in to comment.