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
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| endpoint | string | — | Yes | HTTPS endpoint URL for Cloudflare Logpush. |
| secret | string | — | Yes | Secret key/token for HTTP authentication. |
TLS Configuration
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| tls.cert_file | string | — | Yes (with tls) | Path to TLS certificate file. |
| tls.key_file | string | — | Yes (with tls) | Path to TLS private key file. |
Advanced Settings
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| time_stamp_field | string | — | No | Log field containing timestamp (for non-http_requests datasets). |
| time_stamp_format | string | unixnano | No | Timestamp format (unixnano, RFC3339, unix). |
| attributes | object | No | Map 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",
},
}