Requirements
- Netlify Enterprise. Log Drains are an Enterprise feature on Netlify.
- Permission to manage the site’s Log Drains.
Set up
1
Create the source in Quotable
In Agent Analytics, select Connect source, choose Netlify and select Generate credentials. Copy the token and the endpoint URL.
2
Create a Log Drain
In Netlify, open the site, go to the Log Drains settings and enable a drain:
- Log type: traffic logs only. Function and edge function logs don’t describe requests and are dropped as
invalid_record. - Destination: general HTTP endpoint, with your endpoint URL.
- Header:
Authorizationwith the valueBearer aa_live_….
3
Confirm delivery
Select Check now in Quotable.
Deploy previews and branch deploys
Only production traffic is counted. Records from a deploy preview or branch deploy are dropped asenvironment_filtered, so a preview’s crawls don’t distort your production numbers.
Rotate the token
- Rotate the token in Quotable. The old token stops working immediately.
- Edit the drain’s
Authorizationheader in Netlify.
Disconnect
Delete the drain in Netlify, then disconnect the source in Quotable.Troubleshooting
Next steps
Read the dashboard
What to look at once data arrives.
Troubleshooting
Fix deliveries that fail or arrive empty.