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

# Netlify Integration

> This guide explains how to configure Netlify Log Drains to forward your application logs to Profound Agent Analytics platform for comprehensive monitoring and analysis.

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

## Overview

Netlify General HTTP Endpoint Log Drains enable you to stream your application logs to external services for enhanced monitoring and analytics. By integrating with Profound's Agent Analytics platform, you can gain deeper insights into your site's performance, track visitor behavior, and monitor AI agent interactions in real-time.

## Prerequisites

* A Netlify account with Enterprise plan

* Administrative access to your Netlify team settings

* Your Profound Log Ingestion Token (provisioned during onboarding)

* A deployed Netlify site with production traffic

## Configuration

<img src="https://mintcdn.com/profound-37face47/tg0qbLRw_vFMInTl/images/agent-analytics/netlify/netlify_setup.png?fit=max&auto=format&n=tg0qbLRw_vFMInTl&q=85&s=e9bd35718c1d642d9c8499aae3bb1f6b" alt="Netlify Detected" width="3680" height="2390" data-path="images/agent-analytics/netlify/netlify_setup.png" />

<Steps>
  <Step title="Step 1">
    Navigate to your project in the Netlify dashboard. On the left, click **Logs > Log Drains**

    <img src="https://mintcdn.com/profound-37face47/tg0qbLRw_vFMInTl/images/agent-analytics/netlify/log_drains.png?fit=max&auto=format&n=tg0qbLRw_vFMInTl&q=85&s=403dc144e903f43f448cbcdd2a779ecd" alt="Log Drains" width="4042" height="1226" data-path="images/agent-analytics/netlify/log_drains.png" />
  </Step>

  <Step title="Step 2">
    Click **Enable Log Drain** and select `General HTTP Endpoint`

    <img src="https://mintcdn.com/profound-37face47/tg0qbLRw_vFMInTl/images/agent-analytics/netlify/http_endpoint.png?fit=max&auto=format&n=tg0qbLRw_vFMInTl&q=85&s=f4db6bad9062aa6106f8003f57be678b" alt="Http Endpoint" width="2834" height="1100" data-path="images/agent-analytics/netlify/http_endpoint.png" />
  </Step>

  <Step title="Step 3">
    Prepare your log drain. Uncheck:

    * **Function logs**
    * **Edge function logs**
    * **Deploy logs**
    * **WAF logs**
    * **Exclude personally identifiable information (PII)**

    You should only use **Traffic Logs** for the log drain.

    Prepare your endpoint and authorization:

    * URL: `https://artemis.api.tryprofound.com/v1/logs/netlify`
    * Authorization Header: `Bearer bot_xxx`

    Leave **JSON** selected in the **Log Drain Format**.

    <img src="https://mintcdn.com/profound-37face47/tg0qbLRw_vFMInTl/images/agent-analytics/netlify/configure_endpoint.png?fit=max&auto=format&n=tg0qbLRw_vFMInTl&q=85&s=a0ba4afdaec87c3c26193e447b594039" alt="Configure Http Endpoint" width="2914" height="2088" data-path="images/agent-analytics/netlify/configure_endpoint.png" />

    <Note>
      Your configuration should match the screenshot above.
    </Note>
  </Step>

  <Step title="Step 4">
    Click **Connect** to connect the log drain.

    <Warning>
      If you see the following error:

      `incorrectly configured GetURL, validation request returns status code 400`

      double check you have prefixed your token with `Bearer `
    </Warning>

    <img src="https://mintcdn.com/profound-37face47/tg0qbLRw_vFMInTl/images/agent-analytics/netlify/configuration_complete.png?fit=max&auto=format&n=tg0qbLRw_vFMInTl&q=85&s=9aa26eb73af4ec97e9c0144de06d4b49" alt="Configuration Complete" width="2792" height="1132" data-path="images/agent-analytics/netlify/configuration_complete.png" />
  </Step>
</Steps>

<Check>That's it! Netlify will now send real-time logs to Profound. Data should begin appearing in your dashboard within a few minutes.</Check>

## Troubleshooting

* If logs aren't appearing in your Profound dashboard, verify your endpoint targets `/v1/logs/netlify`

* For authentication or Log Ingestion Token issues ensure you have prefixed the token with `Bearer `

## Additional Resources

* [Netlify Log Drains Documentation](https://docs.netlify.com/monitor-sites/log-drains/?monitoring-providers=general)

* Contact [support@tryprofound.com](mailto:support@tryprofound.com) for integration assistance

## Security Considerations

* Store Log Ingestion Tokens securely in environment variables

* Regularly rotate your Log Ingestion Token

* Monitor log drain activity for unusual patterns

* Use HTTPS endpoints for all log forwarding
