Skip to main content

Cloudflare Logpush Connector

Important Note

You are limited to one Cloudflare connector.
If you need to collect multiple datasets, create multiple Logpush jobs within the same Cloudflare Logpush connector.


Prerequisites

Ensure you have:

  • A valid Cloudflare API Token with appropriate permissions
  • Your Cloudflare Account ID
  • The required dataset names from Cloudflare

Configurations

Use the following configuration parameters to forward logs via the Cloudflare Logpush Connector to DNIF.

FieldDescription
Connector NameA unique name for your Cloudflare connector
Logpush JobsAdd one or more Cloudflare Logpush jobs for each dataset

Adding Logpush Jobs

  • Click the Add button to configure a new Cloudflare Logpush Job.

Logpush Job Creation Fields

To create a Logpush job, provide the following details:

FieldDescription
api_tokenAPI Token used for authentication
scopeSet to Account
account_idYour Cloudflare account ID
datasetThe dataset you want to fetch logs from

Obtaining API Credentials

1. Get Cloudflare Account ID

2. Generate an API Token

  • Visit the API Tokens Page
  • Click Create Token → Create Custom Token
  • Set the following permissions:
    • Account > Logpush Jobs → Edit
    • Account > Logpush Datasets → Read
  • Set Account Scope to the relevant account
  • Click Continue to Summary, then Create Token
  • Copy and store the token securely (this is your API token)

3. Choose a Dataset

  • Select an account-based dataset from the list provided.

Testing the Configuration

  • After entering all required details, click Next
  • Then click Test Connection
  • If successful, a “Connection Successful” message will appear along with a timestamp
  • If the test fails, an error message will be shown
    Refer to Troubleshooting Connector Validations for more help