Terraform module to create logpush job for NewRelic
| Name | Version |
|---|---|
| cloudflare | ~> 5.10 |
| newrelic | ~> 3.69 |
| time | ~> 0.13 |
| Name | Version |
|---|---|
| terraform | ~> 1.3 |
| cloudflare | ~> 5.10 |
| newrelic | ~> 3.69 |
| time | ~> 0.13 |
The following input variables are required:
Description: The name of the job to create
Type: string
Description: The NewRelic Account ID.
Type: string
Description: The NewRelic API token.
Type: string
The following input variables are optional (have default values):
Description: Cloudflare domain to fetch the zone id
Type: string
Default: null
Description: Cloudflare account id
Type: string
Default: null
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: null
Description: The kind of job to create
Type: string
Default: null
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
Description: Configuration string for requested fields and timestamp formats
Type:
object({
batch_prefix = optional(string)
batch_suffix = optional(string)
cve_2021_44228 = optional(bool, false)
field_delimiter = optional(string)
field_names = optional(list(string))
output_type = optional(string, "ndjson")
record_delimiter = optional(string)
record_prefix = optional(string)
record_suffix = optional(string)
record_template = optional(string)
# Floating number to specify sampling rate. Sampling is applied on top of filtering, and regardless of the current sample_interval of the data
sample_rate = optional(number)
timestamp_format = optional(string, "rfc3339")
})Default: {}
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)
}), {})
})Default: {}
| Name | Description |
|---|---|
| job | A created logpush job |
Copyright (c) 2023 Flaconi GmbH