Cloudflare Logpush
Stream Cloudflare HTTP request logs directly to AI Search Index for automatic AI bot detection.
Cloudflare plan requirement
Cloudflare Logpush is a Cloudflare Enterprise feature. AI Search Index supports Logpush on all AI Search Index tiers. If you don't have Cloudflare Enterprise, use Cloudflare Workers instead.
Endpoint
POST
/api/v1/logs/cloudflare_logpushhttps://aisearchindex.com/api/v1/logs/cloudflare_logpushSetup Steps
- 1
Open Cloudflare Dashboard
Go to Analytics & Logs → Logs
- 2
Create Logpush Job
Click Add Logpush job
- 3
Select Dataset
Choose HTTP Request as the dataset
- 4
Choose Destination
Select HTTP as the destination type
- 5
Configure Destination URL
Enter the destination URL with your Bot Tracking Key:
Destination URLhttps://aisearchindex.com/api/v1/logs/cloudflare_logpush?header_X-API-Key=bot_YOUR_BOT_TRACKING_KEY - 6
Configure Fields
Select the following fields (at minimum):
- ClientIP
- ClientRequestHost
- ClientRequestMethod
- ClientRequestPath
- ClientRequestUserAgent
- EdgeResponseStatus
- EdgeStartTimestamp
- 7
Save & Enable
Click Save to create the Logpush job. Logs will start flowing within a few minutes.
Verify Integration
After setup, verify logs are being received:
- Wait 5-10 minutes for initial logs to arrive
- Visit your website to generate some traffic
- Check your AI Search Index dashboard for incoming data
- Look for the "CDN Logs" source indicator on page views
Don't have Cloudflare Enterprise?
Use Cloudflare Workers to stream logs on any Cloudflare plan.
Cloudflare Workers Guide