TELEMETRY PIPELINE
Cloudflare LogPush

Cloudflare LogPush source plugin

The Cloudflare LogPush source plugin lets you receive data from Cloudflare LogPush jobs in Chronosphere Telemetry Pipeline.

This plugin is only compatible with pipelines running pipeline agent version 25.3.8 or later.

⚠️

This plugin doesn’t support duplicates of itself within the same pipeline.

Supported telemetry types

This plugin supports these telemetry types:

LogsMetricsTraces

Configuration parameters

Use the parameters in this section to configure your plugin. The Telemetry Pipeline web interface uses the values in the Name column to describe the parameters. Items in the Key column are the YAML keys to use in pipeline configuration files.

General

NameKeyDescriptionDefault
PortaddrThe port where Telemetry Pipeline will listen for incoming data. In the Telemetry Pipeline web interface, you only need to specify the actual port number. In pipeline configuration files, this value combines the network interface and port number. The network interface for this plugin is always 0.0.0.0.9880 in the web interface, 0.0.0.0:9880 in pipeline configuration files

Security and TLS

NameKeyDescriptionDefault
HTTP Usernamehttp_userYour username for HTTP basic authentication, if applicable.none
HTTP Passwordhttp_passwdYour password for HTTP basic authentication, if applicable.none
TLS Certificatecert_fileThe path to your TLS certificate file, if applicable.none
TLS Keykey_fileThe path to your TLS key file, if applicable.none

Ownership Challenge

NameKeyDescriptionDefault
Skip Ownership ChallengeskipownershipchallengeIf false, this plugin will trigger a Cloudflare ownership challenge. If true, this plugin won’t trigger an ownership challenge.true
Cloudflare API Key or API TokencloudflareapikeyRequired if Skip Ownership Challenge is false. The Cloudflare API key or API token to use in the ownership challenge. This parameter supports plain text values and the environment variables CLOUDFLARE_API_TOKEN and CLOUDFLARE_API_KEY.none
Cloudflare EmailcloudflareemailRequired if Skip Ownership Challenge is false and if using key-based authentication, but not token-based authentication. The email address associated with your Cloudflare account. In addition to plaintext values, this parameter supports the environment variable CLOUDFLARE_EMAIL.none
DestinationdestinationRequired if Skip Ownership Challenge is false. The HTTP destination that you configured for your LogPush job. This parameter supports plain text values and the environment variable CLOUDFLARE_DESTINATION.none
Cloudflare Account IDcloudflareaccountidRequired if Skip Ownership Challenge is false and if Cloudflare Zone ID is unset. The Cloudflare account ID associated with your LogPush job. This parameter supports plain text values and the environment variable CLOUDFLARE_ACCOUNT_ID.none
Cloudflare Zone IDcloudflarezoneidRequired if Skip Ownership Challenge is false and if Cloudflare Account ID is unset. The Cloudflare zone ID associated with your LogPush job. This parameter supports plain text values and the environment variable CLOUDFLARE_ZONE_ID.none

Advanced

NameKeyDescriptionDefault
Response Headersresp_headersThe header for Telemetry Pipeline to include in responses to Cloudflare. To include multiple headers, include each header on a new line. Supports templating.Content-Type:application/json
Response Status Coderesp_status_codeThe HTTP status code for Telemetry Pipeline to include in responses to Cloudflare.200
Response Bodyresp_bodyThe response body for Telemetry Pipeline to send to Cloudflare. Supports templating.{"status": "ok"}
Time Extraction Templatetime_fromThe template to extract time data from logs. For example, if your logs use the RFC3339 time format, set the value {{.Format time.RFC3339Nano}}. If no value is set, Telemetry Pipeline assigns a timestamp to each log based on when we receive that log.none
Cloudflare Base URLbaseurlRequired if Skip Ownership Challenge is false. The Cloudflare API base URL to use in the ownership challenge. This parameter supports plain text values and the environment variable CLOUDFLARE_BASE_URL.https://api.cloudflare.com/client/v4/

LogPush jobs

For information about setting up Cloudflare LogPush jobs, consult the Cloudflare LogPush Enable HTTP destination (opens in a new tab) guide.

When you create a new LogPush job in Cloudflare, there might be a delay before data from that job starts flowing to Telemetry Pipeline. Similarly, when you delete a LogPush job in Cloudflare, there might be a delay before data stops flowing. These delays can range anywhere from a few minutes to 15 minutes.

Ownership challenge

You can set Skip Ownership Challenge to false to trigger a one-time Cloudflare ownership challenge (opens in a new tab) for enhanced security and safety. However, this ownership challenge is optional, and it’s possible to send LogPush data to Telemetry Pipeline without it.

If you trigger an ownership challenge outside of Telemetry Pipeline, the ensuing challenge response will appear in your pipeline logs, including tokens, and will be sent to any of your pipeline’s active destinations. This behavior occurs even when the Skip Ownership Challenge setting in Telemetry Pipeline is set to true.