> ## Documentation Index
> Fetch the complete documentation index at: https://promptwatch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Netlify

> Configure crawler log ingestion via Netlify Log Drains (Enterprise)

<div style={{ display: "flex", alignItems: "center", justifyContent: "center", marginBottom: 0 }}>
  <img alt="Netlify" height="40" src="https://www.promptwatch.com/docs/integration-logos/card/netlify.svg" width="40" />
</div>

<p style={{ textAlign: "center", color: "#6b7280", marginTop: 8, marginBottom: 24 }}>
  Stream logs from Netlify Log Drains
</p>

<Info>
  Netlify Log Drains are only available on Netlify Enterprise plans.
</Info>

## Step 1: Create an API Key

Create an API key in Promptwatch. Go to **Settings → API Keys** in your [Promptwatch dashboard](https://app.promptwatch.com).

## Step 2: Enable Log Drain

In your [Netlify Dashboard](https://app.netlify.com/), 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

<Warning>
  **DO NOT select** "Exclude personally identifiable information" — Promptwatch requires the `user_agent` and `client_ip` fields to identify AI crawlers.
</Warning>

**Service Settings**

**Full URL:**

```
https://logs.promptwatch.com/event/netlify
```

**Authorization Header:** `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.

<Warning>
  If you see the error "incorrectly configured GetURL, validation request returns status code 400", check that you have prefixed your token with `Bearer`.
</Warning>

<Note>
  For a full list of API response codes, see [API Response Codes](/docs/crawler-logs/api-responses).
</Note>
