Skip to main content
Cloudflare

Push logs from Cloudflare to our endpoints

Cloudflare Logpush is currently an Enterprise-only feature. If you don’t see the Logpush option, you’ll need to upgrade to the Enterprise Cloudflare plan.

Step 1: Create an API Key

Create an API key in Promptwatch. Go to Settings → API Keys in your Promptwatch dashboard.

Step 2: Create a Logpush Job

Go to your Cloudflare dashboard, select your domain and navigate to Analytics & Logs > Logpush > Create a Logpush job.

Step 3: Configure HTTP Destination

For destination select HTTP destination. Enter the following HTTP endpoint URL:
Replace YOUR_API_KEY with your actual API key.

Step 4: Configure Logpush Job

For dataset select HTTP Requests and configure the logpush job as follows: Name: promptwatch-crawler-logs If logs match:
  • Field: ClientRequestHost
  • Operator: Equals
  • Value: YOUR_DOMAIN (example: app.promptwatch.com)
Send the following fields: Request
  • ClientIP
  • ClientRequestHost
  • ClientRequestMethod
  • ClientRequestReferer
  • ClientRequestURI
  • ClientRequestUserAgent
General
  • WorkerSubrequest (allows us to filter out requests initiated from a Worker, since they will be seen as duplicate)
Performance
  • EdgeStartTimestamp
Response
  • EdgeResponseContentType
  • EdgeResponseStatus
Advanced options: Keep the default settings as is. The timestamp format should be rfc3339, which is the default format.

Optional: Filter on known AI Crawler user agents

Promptwatch identifies AI crawlers automatically and only stores AI crawler visits, all other traffic is discarded. You can safely send all your server logs without worrying about non-crawler data being retained. If you prefer to only forward AI crawler traffic, you can use the user agents listed below to pre-filter on your side. Keep in mind that you’ll need to maintain this list yourself as new crawlers emerge.

Step 5: Verify Cloudflare Proxy is Enabled

Verify your domain’s DNS records have the Cloudflare proxy enabled (orange cloud icon). Logpush for HTTP Requests only captures traffic that flows through the Cloudflare network. If the proxy is off (gray cloud / “DNS only”), Cloudflare never sees the requests and can’t push logs. Go to your Cloudflare dashboard → DNSRecords and make sure the Proxy status shows the orange cloud (“Proxied”) for your domain’s A/AAAA/CNAME records. Cloudflare DNS proxy enabled

Step 6: Finish

Once submitted, your Cloudflare Logpush job will automatically send crawler logs to Promptwatch when an AI crawler visits your website. Depending on how active your website is, this can take a few minutes to appear.
For a full list of API response codes, see API Response Codes.