AlphaWe’re still building this tool. Results may be incomplete or inaccurate, and features may change.It’s publicly accessible so others can try it and share feedback.

Google Cloud CDN

Route Google Cloud CDN logs to AI Search Index via Cloud Logging Log Sink with Pub/Sub push subscription.

Endpoint

POST/api/v1/logs/gcp_log_sink
Endpoint URL: https://aisearchindex.com/api/v1/logs/gcp_log_sink
Authorization: Bearer bot_YOUR_BOT_TRACKING_KEY

Setup Steps

  1. 1

    Create Pub/Sub Topic

    In Google Cloud Console, go to Pub/SubCreate topic

  2. 2

    Create Push Subscription

    Create a subscription for the topic with push delivery:

    Delivery type: Push
    Push endpoint: https://aisearchindex.com/api/v1/logs/gcp_log_sink
    
    Authentication:
      Type: OIDC token
      Service account: [your-service-account]@[project].iam.gserviceaccount.com
      Audience: https://aisearchindex.com
    
    Or use header-based auth:
      Add header: Authorization
      Value: Bearer bot_YOUR_BOT_TRACKING_KEY
  3. 3

    Create Log Sink

    Go to Cloud LoggingLog RouterCreate sink

    Sink destination: Cloud Pub/Sub topic
    Select destination: projects/[project]/topics/[your-topic]
    
    Inclusion filter:
    resource.type="http_load_balancer"
    httpRequest.requestUrl!=""
    
  4. 4

    Grant Permissions

    Grant the log sink's service account the Pub/Sub Publisher role on your topic

Alternative: Using Cloud Functions

For more control over log processing, you can use a Cloud Function to transform and forward logs:

  1. Create a Pub/Sub-triggered Cloud Function
  2. Parse the log entries and extract relevant fields
  3. Forward to our Custom endpoint: /api/v1/logs/custom

Verify Integration

  1. Visit your Cloud CDN-served website to generate traffic
  2. Check Pub/Sub metrics to verify messages are being published
  3. Check your AI Search Index dashboard for incoming data