Cloudflare with Cribl Stream

Account, token, and log-type settings for Cloudflare logs, per the docs.

The Cloudflare Source in Cribl Stream receives logs and events directly from Cloudflare Logpush using the HTTP Event Collector (HEC) protocol. The docs describe it as an intake for the Cloudflare push API, supporting both structured and raw event formats, a Push Source with TLS support and Event Breaker support. It accepts gzip-compressed inbound data when the Content-Encoding: gzip connection header is set.

What the source collects

The intake is a single HTTP(S) listen endpoint. The HEC endpoint defaults to /services/collector and serves both formats: JSON events via the /event path and raw events via the /raw path. General Settings supply the rest of the address: an Address (a hostname or IP to listen on, such as localhost or 0.0.0.0, IPv4 and IPv6) and a Port.

Event Breaker support applies to the raw path only: the Cloudflare Source docs say breakers split incoming raw, unstructured data into distinct events on /raw before Pipelines, while /event assumes the data is already properly formatted into individual events, so no breakers are applied there.

Events also carry internal "meta" fields that are not part of the event but that Functions can read: __headers (added only when Advanced Settings > Capture request headers is toggled on), __hecToken, __inputId, __ctrlFields, __srcIpPort, and __TZ. __srcIpPort holds the sending client's IP and, optionally, port. With Show originating IP off, a proxy's X-Forwarded-For header overrides __srcIpPort with the original client IP/port; with the toggle on, it does not.

With Emit per-token request metrics enabled in Advanced Settings, the Source emits per-token metrics prefixed <basePrefix>.http.perToken. and summary metrics prefixed <basePrefix>.http.summary., where <basePrefix> is the base prefix configured for the Cribl Metrics Source, which can route them to a Destination. The metrics are counter-type, so they are not emitted while zero, and if no tokens are configured only summary metrics are emitted.

Setting up the source

Add the Source under Products > Cribl Stream from a Worker Group. The setup flow gives two paths: Routing > QuickConnect (select Add Source, then Select Existing or Add New) or Data > Sources (select the Source, then Add Source), finishing with Save, then Commit & Deploy.

Under General Settings: Input ID, a unique name for the Source definition (cloning adds -CLONE to the original), and an optional Description. Optional Settings: Allowed Indexes (values allowed in the HEC event index field; wildcards allowed, blank skips validation) and Tags (filter and group Sources in the UI, tab or hard return between names; not added to processed events).

The Auth Tokens section provides the authentication token required to access this Source's data; the docs say to ensure it is valid and has the necessary permissions for data retrieval. Authentication method: a manual Token (enter it or Generate one) or a stored Secret (select or Create one in the secrets store). Toggling Enable token off disables the token, which is skipped during initialization so no client is granted access; the page notes that helps temporarily stop a service's data without deleting the token. An optional Description becomes the token's display name, Allowed indexes restricts the indexes that token's events may carry (multiple values and wildcards), and per-token Fields (Name/Value pairs) are added to events referencing the token, evaluated before Processing Fields.

Server-side TLS defaults to enabled. Select a certificate from the store or enter paths manually; with TLS enabled, Certificate path defaults to $CRIBL_HOME/local/cribl/auth/certs/default.crt and Private key path to $CRIBL_HOME/local/cribl/auth/certs/default.key, with an optional Passphrase. Mutual authentication defaults to off: toggle Authenticate client to require client certificates, set a Trusted client CA path, Validate client certificates (default on), and a Common name regex (default .*) matched against the substring after CN= in the peer's CN and SAN fields (with SAN entries present, all are checked and the CN entry is ignored; without a SAN extension, the single CN name is checked). Minimum/Maximum TLS version bounds reject out-of-range clients, and selecting TLSv1 or TLSv1.1 as the minimum shows a deprecation warning.

The Persistent Queue buffers and preserves incoming events when a downstream Destination has an outage or backpressure. On Cribl-managed Cloud Workers (with an Enterprise plan) the tab exposes only the Enable persistent queue toggle: enabled, PQ is automatically configured in Always On mode with a maximum queue size of 1 GB per PQ-enabled Source, per Worker Process (on uncompressed data, not configurable). All other settings apply to on-prem and hybrid deployments only: Mode (Always On, the default in Cribl Stream 4.1 and newer, or Smart, which engages only when the Source detects backpressure from the data processing engine), Buffer size limit (bytes) (64KB to 10MB, default 1MB), Commit frequency (default 42), File size limit (default 10 MB; must be at least the buffer limit or the save is rejected), Queue size limit (default 5 GB per Worker Process, up to 1 TB unless Group or Fleet settings cap it), Queue file path (default $CRIBL_HOME/state/queues), optional Compression (None or Gzip), and Queue-full behavior (Block, the default, or Drop new data).

Under Processing, Event Breaker rulesets default to System Default Rule and the buffer timeout (minimum 10 ms, default 10000 ms, maximum 43200000 ms) sets how long the breaker waits for new data on a channel before flushing it as-is to Routes. Fields adds Name/Value pairs (a JavaScript expression or a constant) to each event; they normally override same-name event fields, but you can specify the reverse. Where an event has no index, the Source adds one with the literal value default, overridable with an expression such as index == 'default' ? 'myIndex' : index. Pre-Processing runs one selected Pipeline or Pack before Routes.

Advanced Settings: Emit per-token request metrics (enables Periodic Logging); Show originating IP (keeps a proxied client's original IP on the event); Capture request headers (stores inbound headers in __headers); CORS allowed origins and CORS allowed headers (needed only for browser-based JavaScript senders); Active request limit (on-prem only; default 256 per Worker Process, 0 unlimited); Activity log sample rate (default 100, logging every 100th request at info); Requests-per-socket limit (default 0; at the limit the client is told to open a new connection); Socket timeout and Request timeout (default 0, wait indefinitely); Keep-alive timeout (default 5 seconds, 1 to 600); IP allowlist regex (default .*; unmatched requests get 403); IP denylist regex (default ^$); Environment (a GitOps branch; empty means enabled everywhere).

Connected Destinations offers two egress options: Send to Routes enables conditional routing, filtering, and cloning of this Source's data via the Routing table, and QuickConnect sends the data to one or more Destinations via independent, direct connections.

What the docs flag

Frequently asked questions

How does the Cloudflare Source in Cribl Stream receive Logpush data?

It receives logs and events pushed from Cloudflare Logpush over the HTTP Event Collector (HEC) protocol, on a single HEC endpoint that defaults to /services/collector. That endpoint serves JSON events on the /event path and raw events on the /raw path, and the source also accepts gzip-compressed inbound data when the Content-Encoding: gzip connection header is set.

Which endpoint of the Cloudflare Source in Cribl Stream applies event breakers?

Event breakers only function with the /raw endpoint, where they split incoming raw, unstructured data into distinct events before Pipelines run. The /event endpoint assumes its data is already properly formatted into individual events, so event breakers are not applied there.

What happens if no authentication token is set on the Cloudflare Source?

The docs warn that not providing a token allows unauthorized access, so the token must be valid and have the necessary permissions for data retrieval. You can also toggle a token off with Enable token to temporarily stop receiving data from a service without deleting it.

What persistent queue modes does the Cloudflare Source support, and which is the default?

It supports Always On, the default in Cribl Stream 4.1 and newer, and Smart, which engages only when the Source detects backpressure from the data processing engine. Smart mode is deprecated for Source persistent queue on hybrid and on-prem deployments, and affected configurations will automatically migrate to Always On in January 2027.

Source

Verified against Cribl Stream 4.20 documentation on November 03, 2026.