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

# Send Netlify traffic to Searchable (HTTP Log Drain)

> Configure a Netlify HTTP Log Drain to stream request logs to Searchable. No code changes — all configuration is done inside the Netlify dashboard.

## What this does

Netlify's HTTP Log Drain streams every inbound request log entry to a destination of your choosing. We point that drain at Searchable's ingest endpoint, classify the AI bots, and drop everything else.

<Info>
  **No code changes.** All configuration is done inside the Netlify dashboard.
</Info>

<Warning>
  **Enterprise plan only.** HTTP Log Drains are a Netlify Enterprise feature. If you're on a Free, Pro, or Business plan, use the **[Edge Function](/setup/netlify-edge)** path instead — it works on all plans.
</Warning>

## Prerequisites

<Check>A Netlify team on the Enterprise plan</Check>
<Check>Team Owner access in Netlify (Log Drain settings are team-level)</Check>
<Check>A Searchable project with your domain confirmed</Check>

## Setup

<Steps>
  <Step title="Generate an integration token in Searchable">
    1. Open your Searchable dashboard
    2. Go to **LLM Analytics → Setup**
    3. Pick **Netlify Log Drain** as your crawler source
    4. Click **Generate token**

    Copy the token now — it starts with `sa_…` and won't be shown again. You can always generate a new one if you lose it.
  </Step>

  <Step title="Open Netlify's Log Drain settings">
    Navigate to your Netlify team:

    **Team settings → Log drains → Add log drain**

    This setting is team-level, not site-level. You need Team Owner access to see it.
  </Step>

  <Step title="Configure the drain">
    Fill in these fields:

    | Field                   | Value                                                     |
    | ----------------------- | --------------------------------------------------------- |
    | **Service**             | HTTPS endpoint                                            |
    | **Endpoint URL**        | `https://tracker.searchableanalytics.com/v1/netlify-logs` |
    | **Format**              | JSON (Netlify delivers NDJSON over HTTPS)                 |
    | **Custom header name**  | `Authorization`                                           |
    | **Custom header value** | `Bearer <your-sa_-token>`                                 |

    <Tip>
      The custom header value must be `Bearer ` followed by the full `sa_…` token, with one space and no quotes. The header name must be exactly `Authorization`.
    </Tip>
  </Step>

  <Step title="Save and verify">
    Click **Save**. Netlify sends a verification ping to the endpoint — Searchable accepts it.

    Then return to **LLM Analytics → Setup** in Searchable. The Netlify Log Drain card should show **Connected** within a few minutes once an AI bot hits your site.
  </Step>
</Steps>

## Verifying the connection

In Searchable:

1. Go to **LLM Analytics → Setup**
2. Look at the Netlify Log Drain card status
3. Click **Check** if it still shows "Waiting for first event"

| Status                      | What it means                                                                                                                |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **Waiting for first event** | The drain is configured but no AI bot has hit your site yet. Typical wait is a few hours for sites that are already indexed. |
| **Connected**               | Events are arriving. The card shows the count from the last 24 hours.                                                        |

## Troubleshooting

<AccordionGroup>
  <Accordion title="Searchable shows 401 errors or the card stays 'Not connected'">
    The Authorization header is missing or wrong.

    * Make sure you added a **custom header** named exactly `Authorization`
    * The value must be `Bearer ` followed by the full `sa_…` token, with one space and no quotes
    * If you've recently revoked the token in Searchable, generate a new one and update the drain
  </Accordion>

  <Accordion title="Netlify reports delivery errors">
    Check the drain format setting.

    * The format must be set to **JSON** (which delivers NDJSON over HTTPS) — not Datadog, Splunk, or any other structured format
    * If the format was wrong, update it and save — Netlify will retry pending deliveries
  </Accordion>

  <Accordion title="I don't see the Log Drain option in Netlify">
    Log Drains are only visible to Team Owners on the Enterprise plan. If you don't see **Team settings → Log drains**:

    * Confirm you have Team Owner access (not just Member)
    * Confirm your Netlify team is on the Enterprise plan

    If you're not on Enterprise, use the **[Edge Function](/setup/netlify-edge)** path — it works on all plans and requires no Netlify plan upgrade.
  </Accordion>

  <Accordion title="Status stays on 'Waiting for first event' for more than 24 hours">
    A few possible causes:

    * The drain isn't enabled or is paused — check Netlify's Team settings → Log drains
    * Your domain in Searchable doesn't match the site on Netlify (check **LLM Analytics → Setup → Confirm your domain**)
    * The drain is configured but no AI bot has visited yet — try visiting your site with a known AI user agent to trigger a test event

    If deliveries are succeeding in Netlify but nothing appears in Searchable, that points to a domain mismatch.
  </Accordion>
</AccordionGroup>

## Removing the integration

To stop sending traffic to Searchable:

1. Netlify → **Team settings → Log drains** → delete the drain
2. Searchable → **LLM Analytics → Setup → Tokens** → revoke the token

Both sides are independent — revoking the token alone is enough to stop ingestion immediately, even if the drain stays configured in Netlify (its deliveries will start returning `401`).

## Next steps

<CardGroup cols={2}>
  <Card title="See the data" icon="chart-line" href="/using-searchable/visibility-tracking">
    Open LLM Analytics to see which assistants are crawling your site.
  </Card>

  <Card title="Add Search Console" icon="google" href="/integrations/google-search-console">
    Correlate AI crawls with search demand.
  </Card>
</CardGroup>
