Sazabi
Data SourcesManual Data Sources

Netlify

Forward Netlify deployment logs to Sazabi for Jamstack observability.

Forward your Netlify deployment logs directly to Sazabi for real-time monitoring of your Jamstack applications. Track builds, functions, and edge handlers with AI-powered analysis.

About this data source

Netlify supports Log Drains that can forward logs to external HTTP endpoints. By configuring a log drain pointing to Sazabi, you can:

  • Monitor build performance and deployment status
  • Track serverless function invocations and errors
  • Observe edge function executions
  • Analyze traffic patterns across your sites
  • Use AI to investigate deployment issues

Prerequisites

Before you begin, make sure you have:

  • A Netlify account on the Enterprise plan
  • A site deployed on Netlify
  • A Sazabi public API key (project-scoped)

Log Drains require a Netlify Enterprise plan. Contact Netlify sales to upgrade if needed.

Get your API key

Create a public key

Click Create API key and select Public as the key type. Public keys are scoped to a single project.

Copy the key and store it securely. You will not be able to see it again.

Setup

Open Netlify Log Drains

Navigate to your Netlify site dashboard and go to Logs & Metrics > Log Drains.

Enable a log drain

Click Enable a log drain to add a new destination.

Select destination type

Choose General HTTP endpoint as the service.

Select log types

Choose which log types to forward:

  • Traffic logs: Site visitor requests for assets and pages
  • Function logs: Serverless function invocations and execution details
  • Edge Function logs: Edge function console output and execution
  • Deploy logs: Build and deployment information

Select all types for comprehensive observability, or choose specific types based on your needs.

Configure the endpoint

Enter the following values:

  • Full URL: https://netlify.<region>.intake.sazabi.com
  • Authorization header: Bearer <your-api-key>
  • Log Drain Format: JSON

Replace <region> with your Sazabi project region (e.g., us-east-1) and <your-api-key> with your Sazabi public API key.

Connect

Click Connect to enable the log drain. Logs will start flowing to Sazabi within a few minutes.

Log types

Netlify Log Drains forward the following log types:

  • Traffic logs: HTTP requests to your site, including status codes, response times, and cache status
  • Function logs: Netlify Functions invocations, including input, output, and execution duration
  • Edge Function logs: Console output from Edge Functions
  • Deploy logs: Build output, deployment status, and timing

All log types are automatically tagged in Sazabi, allowing you to filter and search by type.

Verifying logs are flowing

Once configured, verify that logs are flowing to Sazabi:

  1. Generate activity: Visit your Netlify site, trigger a function, or start a new deployment.

  2. Ask the assistant: Open a thread in Sazabi and ask "Show me recent Netlify logs" or "What function errors occurred today?"

Troubleshooting

Logs not appearing in Sazabi

  • Verify the log drain is enabled in your Netlify site settings
  • Check that the URL includes the correct region
  • Ensure the Authorization header is configured correctly
  • Generate some traffic or trigger a deployment to produce logs

401 Unauthorized errors

  • Your API key may be invalid or expired
  • Verify the Authorization header format is Bearer <key>
  • Create a new public API key in Settings > API Keys

Log Drains not available

Log Drains require a Netlify Enterprise plan. Contact Netlify sales to discuss upgrading your account.

Missing log types

Return to your log drain configuration and verify all desired log types are selected.