Skip to main content

Cloudflare HTTP

Overview

Cloudflare HTTP collects logs pushed from Cloudflare via their HTTP Logpush API. Ideal for real-time ingestion of Cloudflare gateway, access, firewall, and analytics logs.

Supported platforms

  • Linux: Logs
  • Windows: Logs
  • macOS: Logs

Basic Configuration

ParameterTypeDefaultRequiredDescription
endpointstringYesHTTPS endpoint URL for Cloudflare Logpush.
secretstringYesSecret key/token for HTTP authentication.

TLS Configuration

ParameterTypeDefaultRequiredDescription
tls.cert_filestringYes (with tls)Path to TLS certificate file.
tls.key_filestringYes (with tls)Path to TLS private key file.

Advanced Settings

ParameterTypeDefaultRequiredDescription
time_stamp_fieldstringNoLog field containing timestamp (for non-http_requests datasets).
time_stamp_formatstringunixnanoNoTimestamp format (unixnano, RFC3339, unix).
attributesobjectNoMap Cloudflare fields to OTel attributes (key: Cloudflare field, value: OTel attr name).

Example Configuration

{
// Basic Configuration (Required)
"endpoint": "https://your-logpush-endpoint.com",
"secret": "your-logpush-secret-token",
"tls": {
"cert_file": "/path/to/cert.pem",
"key_file": "/path/to/key.pem",
},

// Advanced Settings
"time_stamp_field": "custom_timestamp",
"time_stamp_format": "RFC3339",
"attributes": {
"ClientIP": "client.ip",
"ClientRequestURI": "http.request.uri",
"RayID": "cloudflare.ray_id",
},
}