Google Cloud CDN
How to integrate Google Cloud CDN into Limy
Forward GCP Cloud CDN Access Logs to Limy Analytics
This guide walks you through forwarding Google Cloud CDN access logs to Limy Analytics in near real-time.
Cloud CDN → Cloud Logging → Log Sink → Pub/Sub Topic → Push Subscription → Limy AnalyticsLogs flow from Cloud CDN into Cloud Logging automatically. We create a pipeline that routes them to a Pub/Sub topic, which pushes each log entry to Limy Analytics ingestion endpoint within seconds.
Prerequisites
A GCP project with Cloud CDN and a load balancer already configured
Cloud Logging API enabled
Pub/Sub API enabled
A Limy Analytics account
Step 1: Create a Pub/Sub Topic
Open the Google Cloud Console
Navigate to Pub/Sub → Topics
Click Create Topic
Set the Topic ID to -
limy-analytics-topicUncheck 'Add a default subscription'
Click Create

Step 2: Create a Log Sink
The log sink routes matching log entries from Cloud Logging into the Pub/Sub topic.
Navigate to Logging → Log Router
Click Create Sink
Fill in the following:
Sink Details
Sink name
limy-analytics-sink
Click Next.
Sink Destination
Sink service
Cloud Pub/Sub topic
Cloud Pub/Sub topic
Select limy-analytics-topic
Click Next.
Choose Logs to Include
In the inclusion filter field, enter:
For all load balancer logs:
For a specific load balancer, add a filter on the forwarding rule or URL map name:
or
Tip: To find the exact resource label values for your load balancer, go to Logs Explorer, filter by
resource.type="http_load_balancer", expand any log entry, and look underresource.labels.
For multiple load balancers, you can combine filters:

Click Next.
Choose Logs to Exclude (Optional)
Skip this step or add exclusion filters if needed.
Click Create Sink
Step 3: Create a Push Subscription
The push subscription sends each message to Limy Analytics automatically.
Navigate to Pub/Sub → Topics →
limy-analytics-topicClick Create Subscription
Fill in the following:
Subscription ID
limy-analytics-push
Delivery type
Push
Endpoint URL
https://stream.getlimy.ai

Add a Transform
The transform injects your Limy Analytics API key into each message and removes unused fields to reduce log export volume and improve performance.
Click Add a Transform
Enter
TransformGcpCdnToLimyFormatas the function namePaste the following code into the function body:
Important: Replace
YOUR_LIMY_API_KEYwith your actual Limy Analytics API key.

Click Validate to ensure the function is valid
Click Create
Last updated