Getting Started
Cloudflare Logpush setup
Send HTTP Requests to Honeylog with a zone Logpush job or a filtered account job and verify delivery.
Cloudflare Logpush sends batches of HTTP request logs to Honeylog. Create and manage the job in the Cloudflare dashboard. The Honeylog Cloudflare Worker is a separate installation for websites that collect requests through a Worker.
If you already use the Honeylog Worker, sending the same traffic through both methods can produce duplicate events. Choose one method for that traffic.
Before you start
Select your site in Honeylog and open Settings > Installation > Cloudflare Logpush. You need permission to administer that site to access its credentials. Generate an ingestion secret there if it is missing, using the existing secret controls. Choose the Logpush job scope and save the details. Saving details in Honeylog does not create a Cloudflare job.
You also need permission to create Logpush jobs in Cloudflare and access to the HTTP Requests dataset. Availability depends on your account and zone; check Cloudflare's current pricing and availability. Do not assume a different plan is required if the dataset is unavailable.
Step 1: Choose a zone job or a filtered account job
Zone job
Select the Cloudflare zone that serves the Honeylog site, then open Observability → Export → Logpush.
Account job
Select the Cloudflare account and open Observability → Export → Logpush at account level. The filtered account path has been verified in production.
Step 2: Copy the private HTTP destination
In Cloudflare, select Create a Logpush job → HTTP destination. Paste the value from Copy destination on your Honeylog installation page and select Continue. See Cloudflare HTTP destinations.
Honeylog receives requests at this endpoint:
https://api.honeylog.io/cloudflare/events/<SITE_UUID>
<SITE_UUID> is the selected site's persisted UUID. Preserve its uppercase and lowercase characters; existing short UUIDs are supported. Do not substitute the numeric site ID or domain, append @ID, or add an /api prefix.
The value to paste into Cloudflare → HTTP destination also contains authentication configuration:
https://api.honeylog.io/cloudflare/events/<SITE_UUID>?header_Authorization=Bearer%20<URL_ENCODED_INGESTION_SECRET>
For your job, use Copy destination on the private Honeylog installation page to copy the complete value for the selected site. It is masked by default. Show destination reveals it when needed.
Cloudflare interprets header_Authorization as a destination setting and adds Authorization: Bearer <secret> to the request it sends to Honeylog. The endpoint is the receiving address. The full destination configures that address and header in Cloudflare.
Use the Honeylog site's ingestion secret, not a Cloudflare API token. The copy button URL-encodes the secret once. Paste its output unchanged; do not encode it again or manually append authentication.
Treat the entire destination as a credential. Paste it only into the HTTP destination field. Do not open it in a browser or include it in public guides, navigation links, analytics, or logs. If you regenerate the ingestion secret, copy the new destination and update the job; the previous secret stops working.
Step 3: Select the HTTP Requests dataset
After entering the HTTP destination and selecting Continue, choose HTTP Requests (http_requests) from the Cloudflare dataset list. Use this dataset for both zone and account jobs.
Step 4: Configure the Logpush job
Job name
The name is optional. Use honeylog-<domain> to identify the job in Cloudflare, for example honeylog-example.com.
If logs match…
Use this section to choose which requests Cloudflare sends to Honeylog. See Cloudflare's filter operators.
- Zone job. For a zone dedicated to the Honeylog site, select All logs to send every eligible request. Select Filtered logs to restrict hostnames or exclude requests. Add a hostname filter if the zone also serves other sites.
- Account job. Select Filtered logs and add
ClientRequestHost→ Equal → the hostname of the Honeylog site identified by the destination UUID. Use one filtered job and one destination per site. The gateway can reject batches with requests for another domain.
Hostname filter example. For a site serving example.com and www.example.com, group the exact matches with OR. Join the hostname condition or group to any exclusions with AND.
ClientRequestHost→ Equal →example.com- OR
ClientRequestHost→ Equal →www.example.com
With the CSS exclusion below, the combined filter is (example.com OR www.example.com) AND path does not end with .css.
Step 4a: Exclude static files (optional)
Open If logs match… → Filtered logs. To exclude CSS, add ClientRequestPath → Does not end with → .css.
Recommended extensions .css, .js, .png, .jpg, .jpeg, .gif, .svg, .webp, .avif, .ico, .woff, .woff2
Repeat the rule for each extension you choose and join the rules and any hostname filter with AND. ClientRequestPath ignores query strings, so the CSS rule also excludes /style.css?v=2. See the HTTP Requests field definitions.
Cloudflare caps the filter at about 1,000 bytes. If you reach that limit, keep the hostname filter and prioritize the extensions with the most traffic. For a directory dedicated to static assets, you can exclude it with Does not start with and a path such as /assets/. See Cloudflare's filter limits.
{
"where": {
"and": [
{
"or": [
{"key": "ClientRequestHost", "operator": "eq", "value": "example.com"},
{"key": "ClientRequestHost", "operator": "eq", "value": "www.example.com"}
]
},
{"key": "ClientRequestPath", "operator": "!endsWith", "value": ".css"}
]
}
}
External requests only (optional). Add ClientRequestSource → Equal → eyeball with AND. This keeps requests from external clients and excludes Cloudflare-generated traffic such as Worker subrequests. See Cloudflare request sources.
Send the following fields…
With Cloudflare's default selection, add ClientRequestScheme and ClientRequestUserAgent. Select the ten fields listed below for this setup.
ClientIPClientRequestHostClientRequestSchemeClientRequestURIClientRequestMethodClientRequestUserAgentEdgeResponseStatusEdgeStartTimestampEdgeEndTimestampEdgeResponseBytesRayID(recommended for troubleshooting)
Fields used only for filtering, such as ClientRequestSource and ClientRequestPath, can stay out of the output. ClientRequestReferer and EdgeResponseBodyBytes are optional. See the HTTP Requests field definitions.
Advanced Options
- Set Timestamp format to
rfc3339and use Core (recommended). - Leave Sampling off to send all records that pass your filters. Leave Enable subrequest merging off when shown.
- Turn on Exclude DDoS attack traffic only if you want Cloudflare to omit traffic it identifies as DDoS.
The default output format is NDJSON. See Cloudflare's log output options.
Step 5: Save and verify the first delivery
- Review the dataset, filters, destination and fields, then select Submit in Cloudflare.
- Visit a public page on an included hostname, such as
/articles/logpush-checkonexample.com, and note the time and path. Choose a page outside any path exclusions. - Open Honeylog Real Time Logs for the same site and look for a new event matching your visit. Allow time for a batch to arrive.
The destination test checks the connection, receives 200 and does not create events. Ordinary batches receive 202. A matching event in Real Time Logs confirms the job is delivering data. For delivery status, select the job under Logpush → Health. See the Logpush Health guide.
What Honeylog receives
Cloudflare sends gzip-compressed batches with one JSON record per line. Honeylog detects and decompresses gzip even when the Content-Encoding header is missing. This example shows one uncompressed record with the ten setup fields for example.com. See the Cloudflare Logpush overview.
{"ClientIP":"192.0.2.10","ClientRequestHost":"example.com","ClientRequestScheme":"https","ClientRequestURI":"/articles/logpush-check","ClientRequestMethod":"GET","ClientRequestUserAgent":"Example Browser","EdgeResponseStatus":200,"EdgeStartTimestamp":"2026-11-20T10:30:00Z","EdgeEndTimestamp":"2026-11-20T10:30:00.154Z","EdgeResponseBytes":4632}
Advanced batch settings via API
To tune an existing job, start with 5,000,000 bytes before compression for max_upload_bytes and 1,000 records per batch for max_upload_records. These are recommended job settings. The Honeylog gateway applies its own configurable limits. See Cloudflare's API batch settings.
{
"max_upload_bytes": 5000000,
"max_upload_records": 1000
}
Troubleshooting
- Honeylog gateway
401: the UUID or ingestion secret is incorrect. Copy the destination again for the correct site, preserving UUID case and encoding the secret only once. - Honeylog gateway
400: the payload or fields are incorrect. Check the fields in Step 4, NDJSON and RFC3339 timestamps. - Honeylog gateway
403: a request host is outside the site's allowed scope. Correct the job filter and use a separate job and destination for each Honeylog site. A mixed-domain batch can be rejected. - Honeylog gateway
413: the gateway applies configurable limits to the size of the received request body, the size after decompression and the number of records. Reduce the Cloudflare batch size where the job settings allow it. If the error persists, check which configured gateway limit the batch exceeds. HTTP Requestsis missing from the zone wizard, or the Cloudflare API returns403 / 1004withmissing zone subscription: the dataset may be unavailable on that specific zone even when Logpush (base) is active on the account. Try a filtered account job if the dataset is available at that scope, or ask Cloudflare support whether they can enable it for the zone. Check dataset availability before considering any plan change.- No new events: check that the job is enabled, its filter matches the visited hostname and Health shows deliveries. A successful destination test alone does not confirm event ingestion.
Share error codes and redacted settings when requesting help, never the complete destination or ingestion secret.