Fastly

Stream Fastly logs to AI Search Index using HTTPS logging with JSON format.

Endpoint

POST/api/v1/logs/fastly
URL: https://aisearchindex.com/api/v1/logs/fastly
Headers:
  X-API-Key: bot_YOUR_BOT_TRACKING_KEY

Setup Steps

  1. 1

    Open Service Configuration

    In Fastly, go to your service → Logging

  2. 2

    Add HTTPS Endpoint

    Click Create endpoint and select HTTPS

  3. 3

    Configure Endpoint

    Name: ai-search-index
    URL: https://aisearchindex.com/api/v1/logs/fastly
    Method: POST
    Content type: application/json
    
    Headers:
      X-API-Key: bot_YOUR_BOT_TRACKING_KEY
  4. 4

    Configure Log Format

    Use this JSON format in the log format field:

    {
      "timestamp": %{time.start.msec}V,
      "method": "%{req.method}V",
      "host": "%{req.http.host}V",
      "path": "%{req.url.path}V",
      "status_code": %{resp.status}V,
      "ip": "%{client.ip}V",
      "user_agent": "%{req.http.User-Agent}V",
      "referer": "%{req.http.Referer}V"
    }
  5. 5

    Activate

    Save the endpoint and activate the new version of your service

Verify Integration

  1. Visit your Fastly-served website to generate traffic
  2. Wait a few minutes for logs to be processed
  3. Check your AI Search Index dashboard for incoming data