Stream logs from Netlify Log Drains
Netlify Log Drains are only available on Netlify Enterprise plans.
Step 1: Create an API Key
Create an API key in Promptwatch. Go to Settings → API Keys in your Promptwatch dashboard.Step 2: Enable Log Drain
In your Netlify Dashboard, select your site and navigate to Logs & Metrics → Log Drains. Click Enable a log drain. Select General HTTP endpoint as the Log drain service.Step 3: Configure Log Drain
Uncheck:- Function logs
- Edge function logs
- Deploy logs
- WAF logs
Bearer YOUR_API_KEY
Log Drain Format: JSON
Step 4: Finish
Click Connect to finish. When AI crawlers visit your website, the stats will show in your Promptwatch dashboard. Data should begin appearing within a few minutes.For a full list of API response codes, see API Response Codes.