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: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)
- ClientIP
- ClientRequestHost
- ClientRequestMethod
- ClientRequestReferer
- ClientRequestURI
- ClientRequestUserAgent
- WorkerSubrequest (allows us to filter out requests initiated from a Worker, since they will be seen as duplicate)
- EdgeStartTimestamp
- EdgeResponseContentType
- EdgeResponseStatus
rfc3339, which is the default format.