Skip to content

Flaconi/terraform-cloudflare-logpush-newrelic

Repository files navigation

terraform-cloudflare-logpush-newrelic

Terraform module to create logpush job for NewRelic

lint test Tag Terraform License

Providers

Name Version
cloudflare 4.52.0
newrelic ~> 3.34
time ~> 0.11

Requirements

Name Version
terraform ~> 1.3
cloudflare 4.52.0
newrelic ~> 3.34
time ~> 0.11

Required Inputs

The following input variables are required:

Description: The Cloudflare API token.

Type: string

Description: The NewRelic Account ID.

Type: string

Description: The NewRelic API token.

Type: string

Description: The name of the job to create

Type: string

Description: Cloudflare domain to fetch the zone id

Type: string

Description: Configuration string for requested fields and timestamp formats

Type: string

Description: Destination specific settings

Type:

object({
    wait_before = optional(string)
    newrelic = optional(object({
      endpoint       = optional(string, "https://log-api.newrelic.com/log/v1")
      create_api_key = optional(bool, true)
      api_key        = optional(string)
    }), {})
  })

Optional Inputs

The following input variables are optional (have default values):

Description: The kind of the dataset

Type: string

Default: "http_requests"

Description: Whether to enable the job

Type: bool

Default: true

Description: Filter to include/exclude events

Type: map(any)

Default: {}

Description: Frequency of logs being pushed

Type: string

Default: "high"

Description: The kind of job to create

Type: string

Default: ""

Description: The maximum uncompressed file size of a batch of logs

Type: number

Default: 5000000

Description: The maximum interval in seconds for log batches

Type: number

Default: 30

Description: The maximum number of log lines per batch.

Type: number

Default: 1000

Outputs

Name Description
logpush_job_id The id of the created jogpush job

License

MIT License

Copyright (c) 2023 Flaconi GmbH